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, validate
getConnectionUrl, 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, write
clone, deepClone
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
useTypeConventions
toDumpString, toString
public final void clear()
Clearable
clear
in interface Clearable
clear
in class Credential
public 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 DBTypeMapper
public final java.lang.String getFakedForeignKey(java.lang.String tableColumn)
getFakedForeignKey
in interface DBTypeMapper
public final boolean hasConstraintDefs()
hasConstraintDefs
in interface DBTypeMapper
public final int getConstraintDefCount()
getConstraintDefCount
in interface DBTypeMapper
public final boolean isEmpty()
isEmpty
in interface DBTypeMapper
public final boolean hasTypeDefs()
hasTypeDefs
in interface DBTypeMapper
public final int getTypeDefCount()
getTypeDefCount
in interface DBTypeMapper
public final boolean hasExcludeDefs()
hasExcludeDefs
in interface DBTypeMapper
public final int getExcludeDefCount()
getExcludeDefCount
in interface DBTypeMapper
public java.lang.Class getJavaType(java.lang.String tableColumn, java.lang.Class defaultJavaType)
getJavaType
in interface DBTypeMapper
public java.lang.Class getJavaTypeByConvention(java.lang.String tableColumn, java.lang.Class defaultJavaType, int jdbcType)
getJavaTypeByConvention
in interface DBTypeMapper
public boolean matchesForExclusion(java.lang.String tableName)
matchesForExclusion
in interface DBTypeMapper
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class Credential
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class AbstractDBOCredential
Copyright © 2014 EsprIT-Systems. All Rights Reserved.