|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.map.layer.query.TableDesc
public class TableDesc
This object is created if the loadRecordset
argument in the
initMap
method is set to True. TableDesc
contains a collection
of field names, field lengths, field type, and field precision properties.
Constructor Summary | |
---|---|
TableDesc()
Constructs an instance of a TableDesc object. |
Method Summary | |
---|---|
int |
getCount()
Returns a count of described fields in TableDesc . |
long |
getFieldLength(int index)
Returns the length of the field at given index. |
String |
getFieldName(int index)
Returns the name of a field at given index. |
long |
getFieldPrecision(int index)
Returns the precision of the field at given index. |
long |
getFieldType(int index)
Returns the type of field at given index. |
void |
setFieldLength(long fieldLength)
Sets the length of the field with given value. |
void |
setFieldName(String fieldName)
Sets the fields name with given string. |
void |
setFieldPrecision(int fieldPrecision)
Sets the precision of a field with given value. |
void |
setFieldType(String fieldType)
Sets the field type with given string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableDesc()
TableDesc
object.
TableDesc tableDesc = new TableDesc();
Method Detail |
---|
public int getCount()
TableDesc
.
int count = tableDesc.getCount();
public String getFieldName(int index)
String fieldName = tableDesc.getFieldName(0);
index
- the index number of the field in collection.
setFieldName(java.lang.String)
public long getFieldLength(int index)
long length = tableDesc.getFieldLength(0);
index
- the index number of the field in collection.
setFieldLength(long)
public long getFieldPrecision(int index)
long precision = tableDesc.getFieldPrecision(0);
index
- item in collection.
setFieldLength(long)
public long getFieldType(int index)
long fieldType = tableDesc.getFieldType(0);
index
- the index number of the field in collection.
setFieldType(java.lang.String)
public void setFieldLength(long fieldLength)
tabledesc.setFieldLength(2);
fieldLength
- the field length.getFieldLength(int)
public void setFieldName(String fieldName)
tabledesc.setFieldName("Name");
fieldName
- the name of the field.getFieldName(int)
public void setFieldPrecision(int fieldPrecision)
tabledesc.setFieldPrecision(
fieldPrecision
- the fields precision value.getFieldPrecision(int)
public void setFieldType(String fieldType)
tableDesc.setFieldType("9");
fieldType
- the fields type definition string.getFieldType(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |