Package com.im.df.impl.db
Class DBSchemaUtilities
- java.lang.Object
-
- com.im.df.impl.db.DBSchemaUtilities
-
public final class DBSchemaUtilities extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DBSchemaUtilities.NullCheckValueControlStates
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.chemaxon.dif.db.api.field.ColumnlessFieldDataTypeAbstractImpl
createBasicFieldType(com.im.df.api.ddl.DFEntity entity, String capabilityType, String[] colNames, List<com.im.ijcs.api.ddl.dto.PropInfo> xAttrs)
Creates a field Type implementation for the passed typeID.static Class
determineColumnClassForStringData(int jdbcType)
Utility to determine the correct data type class for a column that used text data.static com.im.commons.db.ddl.DBDatabaseInfo
findDBInfo(com.im.df.api.ddl.DFItem item)
static com.chemaxon.dif.db.api.datatree.DataTreeImpl
initDataTree(com.chemaxon.dif.db.api.schema.DBSchemaImpl schema, String id, String name, String desc, com.im.df.api.ddl.DFEntity rootEntity, Map<String,com.im.df.api.support.SortDirective> initialSortDirectives)
static void
initType(com.im.df.api.ddl.DFField fld, boolean initInDB, com.im.df.api.ddl.DFField.Required required, com.im.df.api.ddl.DFField.Required[] validRequiredValues, com.im.commons.progress.DFEnvironmentRW env)
static com.im.commons.db.columnhandling.DBValueHandler
valueHandlerForField(com.im.df.api.ddl.DFField fld)
-
-
-
Method Detail
-
findDBInfo
public static com.im.commons.db.ddl.DBDatabaseInfo findDBInfo(com.im.df.api.ddl.DFItem item)
-
initDataTree
public static com.chemaxon.dif.db.api.datatree.DataTreeImpl initDataTree(com.chemaxon.dif.db.api.schema.DBSchemaImpl schema, String id, String name, String desc, com.im.df.api.ddl.DFEntity rootEntity, Map<String,com.im.df.api.support.SortDirective> initialSortDirectives)
-
createBasicFieldType
public static com.chemaxon.dif.db.api.field.ColumnlessFieldDataTypeAbstractImpl createBasicFieldType(com.im.df.api.ddl.DFEntity entity, String capabilityType, String[] colNames, List<com.im.ijcs.api.ddl.dto.PropInfo> xAttrs)
Creates a field Type implementation for the passed typeID. Factory method; produces new instances ofDBFieldDataTypeAbstractImpl
. TODO P3 - move this factory to the fields package and seal the constructors.
-
valueHandlerForField
public static com.im.commons.db.columnhandling.DBValueHandler valueHandlerForField(com.im.df.api.ddl.DFField fld)
-
initType
public static void initType(com.im.df.api.ddl.DFField fld, boolean initInDB, com.im.df.api.ddl.DFField.Required required, com.im.df.api.ddl.DFField.Required[] validRequiredValues, com.im.commons.progress.DFEnvironmentRW env)
-
determineColumnClassForStringData
public static Class determineColumnClassForStringData(int jdbcType)
Utility to determine the correct data type class for a column that used text data. Normally this is String.class, but for binary column types it is byte[].
-
-