OpenAPI 1.0

com.aquafold.openapi.data
Interface AQColumnDescriptor


public interface AQColumnDescriptor

This interface describes a table column.


Method Summary
 String getDataType()
          Returns database data type, or null if data type is unknown.
 Class<?> getJavaClass()
          Returns the java class object corresponding to the data type.
 String getJavaType()
          Returns fully qualified name of the java class corresponding to the data type, or null if unknown.
 String getName()
          Returns table column name.
 int getSqlType()
          Returns an integer value which corresponds to a generic SQL type identifier defined in Types.
 boolean isBinary()
          Returns true if this column data type is binary.
 boolean isBit()
          Returns true if this column data type is bit.
 boolean isBoolean()
          Returns true if this column data type is boolean.
 boolean isDate()
          Returns true if this column data type is compatible with date types.
 boolean isDateTime()
          Returns true if this column data type is compatible with datetime types.
 boolean isNumber()
          Returns true if this column data type is compatible with numeric types.
 boolean isOther()
          Returns true if this column data type is some other kind.
 boolean isText()
          Returns true if this column data type is text.
 boolean isTime()
          Returns true if this column data type is compatible with time types.
 void setDataType(String type)
          Sets database data type.
 void setJavaType(String type)
          Sets java type.
 void setSqlType(int type)
          Sets generic SQL type identifier.
 

Method Detail

getName

String getName()
Returns table column name.

Returns:
The name of the column.

getDataType

String getDataType()
Returns database data type, or null if data type is unknown.


setDataType

void setDataType(String type)
Sets database data type.

Parameters:
type -

getJavaType

String getJavaType()
Returns fully qualified name of the java class corresponding to the data type, or null if unknown.


setJavaType

void setJavaType(String type)
Sets java type.

Parameters:
type -

getJavaClass

Class<?> getJavaClass()
Returns the java class object corresponding to the data type. Returns Object class if the type is unknown or is not set.


getSqlType

int getSqlType()
Returns an integer value which corresponds to a generic SQL type identifier defined in Types.


setSqlType

void setSqlType(int type)
Sets generic SQL type identifier.

Parameters:
type - One of the integer values defined in Types.

isText

boolean isText()
Returns true if this column data type is text.


isNumber

boolean isNumber()
Returns true if this column data type is compatible with numeric types.


isDate

boolean isDate()
Returns true if this column data type is compatible with date types.


isTime

boolean isTime()
Returns true if this column data type is compatible with time types.


isDateTime

boolean isDateTime()
Returns true if this column data type is compatible with datetime types.


isBinary

boolean isBinary()
Returns true if this column data type is binary.


isBoolean

boolean isBoolean()
Returns true if this column data type is boolean.


isBit

boolean isBit()
Returns true if this column data type is bit.


isOther

boolean isOther()
Returns true if this column data type is some other kind.


OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.