| java.lang.Object com.completex.objective.components.persistency.MetaTable
TAG_NATURAL_KEY | final public static String TAG_NATURAL_KEY(Code) | | |
exclude | protected boolean exclude(Code) | | |
transformed | protected boolean transformed(Code) | | |
MetaTable | public MetaTable(String tableName, String tableAlias, int size, int keySize)(Code) | | |
addColumn | public MetaColumn addColumn(String columnName)(Code) | | Adds new MetaColumn to the table if MetaColumn with the name columnName did not exist.
Returns new/existing MetaColumn with given column name
Parameters: columnName - MetaColumn by columnName |
addColumn | public MetaColumn addColumn(MetaColumn column)(Code) | | Adds new MetaColumn to the table
Returns MetaColumn passed as parameter
Parameters: column - MetaColumn |
addToForeignKey | public void addToForeignKey(String fkTable, ForeignKeyEntry foreignKeyEntry)(Code) | | Parameters: fkTable - Parameters: foreignKeyEntry - |
addToForeignKey | public void addToForeignKey(String fkTableName, ForeignKeyEntry foreignKeyEntry, boolean internal)(Code) | | Adds foreignKeyEntry to foreign keys
Parameters: fkTableName - Parameters: foreignKeyEntry - Parameters: internal - |
addToOptLockKey | public void addToOptLockKey(Object column)(Code) | | |
addToPrimaryKey | public void addToPrimaryKey(Integer columnIndex)(Code) | | Adds index to primary key List
Parameters: columnIndex - |
containsColumn | public boolean containsColumn(String columnName)(Code) | | Parameters: columnName - true if this table contains column with columnName |
foreignKeySize | public int foreignKeySize()(Code) | | ForeignKeys size |
getColumn | public MetaColumn getColumn(int columnIndex)(Code) | | Parameters: columnIndex - MetaColumn |
getColumnIndexByPrimaryKeyIndex | public int getColumnIndexByPrimaryKeyIndex(int primaryKeyIndex)(Code) | | Gets column index by primary key index
Parameters: primaryKeyIndex - index of value in primaryKey object column index by primary key index |
getColumnsInFk | public MetaColumn[] getColumnsInFk(String tableName)(Code) | | Parameters: tableName - MetaColumn [] that are in foreign keys |
getDefaultJavaToMetaType | public static JavaToMetaType getDefaultJavaToMetaType()(Code) | | default JavaToMetaType object |
getOptLockKey | public List getOptLockKey()(Code) | | List of optimistic lock columns indeces |
getOptLockKeySize | public int getOptLockKeySize()(Code) | | size of List of optimistic lock columns indeces |
getPrimaryKey | public List getPrimaryKey()(Code) | | List of primary key column indeces |
isExclude | public boolean isExclude()(Code) | | true if this table is excluded from code generation |
isStaticFinal | public boolean isStaticFinal()(Code) | | |
isTransformed | public boolean isTransformed()(Code) | | true if table has been transformed |
keySize | public int keySize()(Code) | | primary key size |
setColumn | public void setColumn(int columnIndex, MetaColumn column)(Code) | | Sets column at certasin index
Parameters: columnIndex - Parameters: column - throws: IndexOutOfBoundsException - if the index is out of range(index < 0 || index >= size()). |
setExclude | public void setExclude(boolean exclude)(Code) | | Parameters: exclude - true if this table is excluded from code generation |
setStaticFinal | public void setStaticFinal(boolean staticFinal)(Code) | | |
setTableAlias | public void setTableAlias(String tableAlias)(Code) | | Parameters: tableAlias - |
setTableName | public void setTableName(String tableName)(Code) | | Parameters: tableName - |
setTransformed | public void setTransformed(boolean transformed)(Code) | | Parameters: transformed - true if table has been transformed |
size | public int size()(Code) | | number of columns |
toPrimaryKeyIndeces | public int[] toPrimaryKeyIndeces()(Code) | | primary key indeces array |
|
|