LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.sql
Class LyMetaDataColumnInformation

java.lang.Object
  extended by leon.peer.sql.LyMetaDataInformation
      extended by leon.peer.sql.LyMetaDataColumnInformation

public class LyMetaDataColumnInformation
extends LyMetaDataInformation


Nested Class Summary
 class LyMetaDataColumnInformation._LyMetaDataColumnForeignKeyInformation
           
 
Field Summary
static java.lang.String __VERSION
           
static short NO_KEY
           
 
Constructor Summary
LyMetaDataColumnInformation(java.lang.String name, java.lang.String remarks)
          Default Constructor.
 
Method Summary
 int getColumnSize()
          Accessor to the size of this column.
 short getDataType()
          Accessor to the type of this column.
 java.lang.String getDataTypeString()
          Accessor to the string representation of the type of this column.
 int getDecimalDigits()
          Accessor to the number of decimals of this column.
 java.lang.String getDef()
          Accessor to def attribute.
 java.lang.String getExportedKeyTable()
          Accessor to the exported table id of this column.
 java.util.Vector<LyMetaDataColumnInformation._LyMetaDataColumnForeignKeyInformation> getForeignKeys()
           
 java.lang.String getImportedKeyColumn()
          Accessor to the column id of the imported key.
 java.lang.String getImportedKeyName()
          Accessor to the name of the imported key.
 java.lang.String getImportedKeyTable()
          Accessor to the table id of the imported key.
 java.lang.String getIsNullable()
          Accessor to the isNullable attribute.
 short getKeyOrder()
          Accessor to key order of this column.
 java.lang.String getNullable()
          Accessor to the nullable attribute.
 int getOctetLength()
          Accesor to the length of this column in bytes.
 int getPosition()
          Accessor to the position of this column.
 short getPrimaryKey()
          Accessor to the primary key atttribute of this column.
 java.lang.String getStatus()
          Accessor to the status of this column.
 java.lang.String getTableName()
          Accessor to the table name.
 java.lang.String getTypeName()
          Accessor to the name of the type of this column.
 boolean isExportedKey()
          Test if this column is an exported key or not.
 boolean isImportedKey()
          Test if this column is an imported key or not.
 boolean isPrimaryKey()
          Tests if this column is primary key or not.
 void setColumnSize(int columnSize)
          Modifier of the size of this column.
 void setDataType(short dataType)
          Modifier of the type of this column.
 void setDecimalDigits(int decimalDigits)
          Modifier of the number of decimals of this column.
 void setDef(java.lang.String def)
          Modifier of the def attribute.
 void setIsExportedKey(java.lang.String exportedTableId)
          Modifier of the exported table id of this column.
 void setIsImportedKey(java.lang.String importedKeyName, java.lang.String importedTableId, java.lang.String importedColumnId)
          Modifier of the imported key attribute.
 void setIsNullable(java.lang.String isNullable)
          Modifier of the isNullbable attribute.
 void setIsPrimaryKey()
          To compute if this column is primary key or not.
 void setIsPrimaryKey(boolean auto_increment)
          To compute if this column is primary key or not.
 void setKeyOrder(short keyOrder)
          Modifier of the key order of this column.
 void setNullable(int nullable)
          Modifier of the nullable attribute.
 void setOctetLength(int octetLength)
          Modifier of the length of this column in bytes.
 void setPosition(int position)
          Modifier of the position of this column.
 void setTableName(java.lang.String tableName)
          Modifier of the table name of this column.
 void setTypeName(java.lang.String typeName)
          Modifier of the name of the type of this column.
 java.lang.String toString()
          Compute a string representation of this column information.
 
Methods inherited from class leon.peer.sql.LyMetaDataInformation
getDriverName, getDriverVersion, getName, getProductName, getProductVersion, getRemarks, getSqlKeyWords, getTables, setTables
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values

NO_KEY

public static final short NO_KEY
See Also:
Constant Field Values
Constructor Detail

LyMetaDataColumnInformation

public LyMetaDataColumnInformation(java.lang.String name,
                                   java.lang.String remarks)
Default Constructor.

Parameters:
name - Name of this information.
remarks - Comments associated to this information.
Method Detail

getTableName

public java.lang.String getTableName()
Accessor to the table name.

Returns:
Table name of this column.

setTableName

public void setTableName(java.lang.String tableName)
Modifier of the table name of this column.

Parameters:
tableName - The table name of this column.

getDataType

public short getDataType()
Accessor to the type of this column.

Returns:
The type of this column.
See Also:
Types

setDataType

public void setDataType(short dataType)
Modifier of the type of this column.

Parameters:
dataType - The type of this column.
See Also:
Types

getDataTypeString

public java.lang.String getDataTypeString()
Accessor to the string representation of the type of this column.

Returns:
The string representation of the type of this column.

getTypeName

public java.lang.String getTypeName()
Accessor to the name of the type of this column.

Returns:
The name of the type of this column.

setTypeName

public void setTypeName(java.lang.String typeName)
Modifier of the name of the type of this column.

Parameters:
typeName - The name of the type of this column.

getColumnSize

public int getColumnSize()
Accessor to the size of this column.

Returns:
The size of this column.

setColumnSize

public void setColumnSize(int columnSize)
Modifier of the size of this column.

Parameters:
columnSize - The size of this column.

getDecimalDigits

public int getDecimalDigits()
Accessor to the number of decimals of this column.

Returns:
The number of decimals of this column.

setDecimalDigits

public void setDecimalDigits(int decimalDigits)
Modifier of the number of decimals of this column.

Parameters:
decimalDigits - The number of decimals of this column.

getNullable

public java.lang.String getNullable()
Accessor to the nullable attribute.

Returns:
The nullable attribute.

setNullable

public void setNullable(int nullable)
Modifier of the nullable attribute.

Parameters:
nullable - The nullable attribute.

getIsNullable

public java.lang.String getIsNullable()
Accessor to the isNullable attribute.

Returns:
The isNullable attribute.

setIsNullable

public void setIsNullable(java.lang.String isNullable)
Modifier of the isNullbable attribute.

Parameters:
isNullable - The isNullbale attribute.

getDef

public java.lang.String getDef()
Accessor to def attribute.

Returns:
The def attribute.

setDef

public void setDef(java.lang.String def)
Modifier of the def attribute.

Parameters:
def - The def attribute.

getPosition

public int getPosition()
Accessor to the position of this column.

Returns:
The position of this column.

setPosition

public void setPosition(int position)
Modifier of the position of this column.

Parameters:
position - The position of this column.

getOctetLength

public int getOctetLength()
Accesor to the length of this column in bytes.

Returns:
The length of this column in bytes.

setOctetLength

public void setOctetLength(int octetLength)
Modifier of the length of this column in bytes.

Parameters:
octetLength - The length of this column in bytes.

getKeyOrder

public short getKeyOrder()
Accessor to key order of this column.

Returns:
the key order of this column.

setKeyOrder

public void setKeyOrder(short keyOrder)
Modifier of the key order of this column.

Parameters:
keyOrder - the key order.

getPrimaryKey

public short getPrimaryKey()
Accessor to the primary key atttribute of this column.

Returns:
The primary key

isPrimaryKey

public boolean isPrimaryKey()
Tests if this column is primary key or not.

Returns:
true if this column is primary key, false otherwise.

setIsPrimaryKey

public void setIsPrimaryKey()
To compute if this column is primary key or not.


setIsPrimaryKey

public void setIsPrimaryKey(boolean auto_increment)
To compute if this column is primary key or not.


setIsImportedKey

public void setIsImportedKey(java.lang.String importedKeyName,
                             java.lang.String importedTableId,
                             java.lang.String importedColumnId)
Modifier of the imported key attribute.

Parameters:
importedTableId - The table from which the key is imported.

getImportedKeyTable

public java.lang.String getImportedKeyTable()
Accessor to the table id of the imported key.

Returns:
The table id of the imported key.

getImportedKeyColumn

public java.lang.String getImportedKeyColumn()
Accessor to the column id of the imported key.

Returns:
The column id of the imported key.

getImportedKeyName

public java.lang.String getImportedKeyName()
Accessor to the name of the imported key.

Returns:
The name of the imported key.

isImportedKey

public boolean isImportedKey()
Test if this column is an imported key or not.

Returns:
true if this column is an imported key, false otherwise.

setIsExportedKey

public void setIsExportedKey(java.lang.String exportedTableId)
Modifier of the exported table id of this column.

Parameters:
exportedTableId - The exported table id of this column.

getForeignKeys

public java.util.Vector<LyMetaDataColumnInformation._LyMetaDataColumnForeignKeyInformation> getForeignKeys()

getExportedKeyTable

public java.lang.String getExportedKeyTable()
Accessor to the exported table id of this column.

Returns:
The exported table id of this column.

isExportedKey

public boolean isExportedKey()
Test if this column is an exported key or not.

Returns:
true if this column is an exported key, false otherwise.

getStatus

public java.lang.String getStatus()
Accessor to the status of this column.

Returns:
The status of this column.

toString

public java.lang.String toString()
Compute a string representation of this column information.

Overrides:
toString in class LyMetaDataInformation
Returns:
A string representation of this column information.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com