public class DBOTypeMapCredential extends AbstractDBOCredential implements DBTypeMapper
connUrl, connUrlKey, credentialDocType, dbPassword, dbPasswordKey, dbSchema, dbSchemaKey, dbUser, dbUserKey, DEFAULT_DATABASE_PATH, DERBY_SYSTEM_HOME, jdbcDriver, jdbcDriverKey, loginTimeout, loginTimeoutKey, maxConns, maxConnsKey, minConns, minConnsKey, systemPropsType| Constructor and Description |
|---|
DBOTypeMapCredential() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFakedForeignKey(DBColumnKey column,
DBColumnKey referencingColumn) |
void |
addFakedPrimaryKey(DBColumnKey column) |
void |
addTableExcludePattern(java.lang.String pattern) |
void |
clear()
Clears the content
|
int |
getConstraintDefCount() |
int |
getExcludeDefCount() |
java.lang.String |
getFakedForeignKey(java.lang.String tableColumn)
Returns the faked foreign key reference of the given tableColumn, if one is defined.
|
java.lang.Class |
getJavaType(java.lang.String tableColumn,
java.lang.Class defaultJavaType)
Returns java-type constants for values read from the underlying
type definition.
|
java.lang.Class |
getJavaTypeByConvention(java.lang.String tableColumn,
java.lang.Class defaultJavaType,
int jdbcType) |
int |
getTypeDefCount() |
java.lang.Class |
getTypeForColumn(java.lang.String tableColumn) |
boolean |
hasConstraintDefs() |
boolean |
hasExcludeDefs() |
boolean |
hasTypeDefs() |
boolean |
isEmpty() |
boolean |
isFakedPrimaryKey(java.lang.String tableColumn)
Returns true if the given tableColumn is declared as a faked primary key
(if the value is 'pk').
|
boolean |
matchesForExclusion(java.lang.String tableName)
Tells whether this tableName matches any defined exclusion pattern and thus no DBObject should
be compiled for it.
|
void |
put(DBColumnKey column,
java.lang.Class javaType)
Java types added here must implement PersistentId or PersistentName
|
void |
put(DBColumnKey column,
JavaColumnType javaType)
Java types added here are columns of existing DBObjects
|
void |
put(java.lang.String tableColumn,
java.lang.Class javaType) |
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
getAppKey, getAuthor, getPackageDir, getTargetDir, getTargetPackage, isRebuildExistingDBOs, setAuthor, setRebuildExistingDBOs, setTargetDir, setTargetPackage, setTranslationAppKey, setUseTypeConventions, setValues, useTypeConventions, validategetConnectionUrl, getCredFile, getDatabaseName, getDefaultSystemProperties, getDefaultSystemProperty, getJdbcDriver, getLoginTimeout, getMaxConns, getMinConns, getPassword, getSchema, getUser, initDefaultSystemProperties, isValid, putDefaultSystemProperty, read, readCommandLineParams, setConnectionUrl, setCredFile, setJdbcDriver, setLoginTimeout, setMaxConns, setMinConns, setPassword, setSchema, setUser, writeclone, deepCloneconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waituseTypeConventionstoDumpString, toStringpublic final void clear()
Clearableclear in interface Clearableclear in class Credentialpublic final java.lang.Class getTypeForColumn(java.lang.String tableColumn)
public final void put(DBColumnKey column, JavaColumnType javaType)
public final void put(DBColumnKey column, java.lang.Class javaType)
public final void put(java.lang.String tableColumn,
java.lang.Class javaType)
public final void addTableExcludePattern(java.lang.String pattern)
public final void addFakedPrimaryKey(DBColumnKey column)
public final void addFakedForeignKey(DBColumnKey column, DBColumnKey referencingColumn)
public final boolean isFakedPrimaryKey(java.lang.String tableColumn)
isFakedPrimaryKey in interface DBTypeMapperpublic final java.lang.String getFakedForeignKey(java.lang.String tableColumn)
getFakedForeignKey in interface DBTypeMapperpublic final boolean hasConstraintDefs()
hasConstraintDefs in interface DBTypeMapperpublic final int getConstraintDefCount()
getConstraintDefCount in interface DBTypeMapperpublic final boolean isEmpty()
isEmpty in interface DBTypeMapperpublic final boolean hasTypeDefs()
hasTypeDefs in interface DBTypeMapperpublic final int getTypeDefCount()
getTypeDefCount in interface DBTypeMapperpublic final boolean hasExcludeDefs()
hasExcludeDefs in interface DBTypeMapperpublic final int getExcludeDefCount()
getExcludeDefCount in interface DBTypeMapperpublic java.lang.Class getJavaType(java.lang.String tableColumn,
java.lang.Class defaultJavaType)
getJavaType in interface DBTypeMapperpublic java.lang.Class getJavaTypeByConvention(java.lang.String tableColumn,
java.lang.Class defaultJavaType,
int jdbcType)
getJavaTypeByConvention in interface DBTypeMapperpublic boolean matchesForExclusion(java.lang.String tableName)
matchesForExclusion in interface DBTypeMapperpublic ToString toString(ToString s)
DumpabletoString in interface DumpabletoString in class Credentialpublic DumpString toDumpString(DumpString s)
DumpabletoDumpString in interface DumpabletoDumpString in class AbstractDBOCredentialCopyright © 2014 EsprIT-Systems. All Rights Reserved.