| java.lang.Object org.continuent.sequoia.common.protocol.Field
Constructor Summary | |
public | Field(String table, String columnName, int columnDisplaySize, int sqlType, String typeName, String columnClassName) Create a new field with some default common values. | public | Field(String table, String columnName, String columnLabel, int columnDisplaySize, int sqlType, String typeName, String columnClassName, boolean isAutoIncrement, boolean isCaseSensitive, boolean isCurrency, int isNullable, boolean isReadOnly, boolean isWritable, boolean isDefinitelyWritable, boolean isSearchable, boolean isSigned, int precision, int scale, String encoding) Creates a new Field instance using the reference arguments
(arguments are NOT cloned). | public | Field(DriverBufferedInputStream in) Creates a new Field object, deserializing it from an input
stream. |
Field | public Field(String table, String columnName, int columnDisplaySize, int sqlType, String typeName, String columnClassName)(Code) | | Create a new field with some default common values.
Parameters: table - the table name Parameters: columnName - the field name Parameters: columnDisplaySize - the column display size Parameters: sqlType - the SQL type Parameters: typeName - the type name Parameters: columnClassName - the column class name |
Field | public Field(String table, String columnName, String columnLabel, int columnDisplaySize, int sqlType, String typeName, String columnClassName, boolean isAutoIncrement, boolean isCaseSensitive, boolean isCurrency, int isNullable, boolean isReadOnly, boolean isWritable, boolean isDefinitelyWritable, boolean isSearchable, boolean isSigned, int precision, int scale, String encoding)(Code) | | Creates a new Field instance using the reference arguments
(arguments are NOT cloned).
Parameters: table - the table name Parameters: columnName - the field name Parameters: columnLabel - the field label Parameters: columnDisplaySize - the column display size Parameters: sqlType - the SQL type Parameters: typeName - the type name Parameters: columnClassName - the column class name Parameters: isAutoIncrement - true if field is auto incremented Parameters: isCaseSensitive - true if field is case sensitive Parameters: isCurrency - true if field is currency Parameters: isNullable - indicates the nullability of the field Parameters: isReadOnly - true if field is read only Parameters: isWritable - true if field is writable Parameters: isDefinitelyWritable - true if field is definetly writable Parameters: isSearchable - true if field is searchable Parameters: isSigned - true if field is signed Parameters: precision - decimal precision Parameters: scale - number of digits to right of decimal point Parameters: encoding - the encoding of this field, if any |
getEncoding | public String getEncoding()(Code) | | the encoding used for this field |
getFieldLabel | final public String getFieldLabel()(Code) | | Returns the fieldLabel value.
Returns the fieldLabel. |
getFieldName | public String getFieldName()(Code) | | Gets the field name.
a String value |
getFullName | public String getFullName()(Code) | | Gets the full name: "tableName.fieldName"
a String value |
getTableName | public String getTableName()(Code) | | Gets the table name.
a String value |
sendToStream | public void sendToStream(DriverBufferedOutputStream out) throws IOException(Code) | | Serialize the Field on the output stream by sending only the
needed parameters to reconstruct it on the controller. Has to mirror the
deserialization method above.
Parameters: out - destination stream throws: IOException - if a stream error occurs |
|
|