|
xmlBlaster 2.2.0 contributions API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlBlaster.contrib.replication.impl.DefaultMapper
public class DefaultMapper
DefaultMapper makes a one to one mapping unless for tables in which case it is read from the property 'replication.mapper.tables'. This property will follow the syntax: table1=tableOne,table2=tableTwo,... All tables not found the the configuration are mapped one to one.
| Field Summary | |
|---|---|
protected java.util.Map |
columnMap
|
protected java.util.Map<java.lang.String,java.lang.String> |
excludeColumns
|
protected java.util.Map |
schemaMap
|
protected java.util.Map |
tableMap
|
| Fields inherited from interface org.xmlBlaster.contrib.replication.I_Mapper |
|---|
COLUMN_TO_IGNORE |
| Constructor Summary | |
|---|---|
DefaultMapper()
|
|
| Method Summary | |
|---|---|
protected void |
doInit(I_Info info,
DbMetaHelper dbHelper)
|
java.lang.String |
getMappedCatalog(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column,
java.lang.String def)
Returns the mapped catalog or null. |
java.lang.String |
getMappedColumn(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column,
java.lang.String def)
Gets the mapped column. |
java.lang.String |
getMappedSchema(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column,
java.lang.String def)
Table and column are ignored here. |
java.lang.String |
getMappedTable(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column,
java.lang.String def)
Columns are ignored here. |
java.lang.String |
getMappedType(java.lang.String catalog,
java.lang.String Schema,
java.lang.String table,
java.lang.String column,
java.lang.String type,
java.lang.String def)
This method is currently unused, and is here for future releases. |
java.util.Set |
getUsedPropertyKeys()
Gets all property keys which may be used by this object. |
void |
init(I_Info info)
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map columnMap
protected java.util.Map tableMap
protected java.util.Map schemaMap
protected java.util.Map<java.lang.String,java.lang.String> excludeColumns
| Constructor Detail |
|---|
public DefaultMapper()
| Method Detail |
|---|
public java.lang.String getMappedCatalog(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column,
java.lang.String def)
I_Mapper
getMappedCatalog in interface I_Mappercatalog - The catalog name of the source (the master catalog). Null is allowed and means unspecified.schema - The schema name of the source (the master). Null is allowed and means unspecified.table - The table name of the source. On null it is considered a default.column - The column name of the source. On null it is considered a default.def - the default value if no entry has been found.
public java.lang.String getMappedSchema(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column,
java.lang.String def)
getMappedSchema in interface I_Mappercatalog - The catalog name of the source (the master). Null is allowed and means unspecified.schema - The schema name of the source (the master). Null is allowed and means unspecified.table - The table name of the source. On null it is considered a default.column - The column name of the source. On null it is considered a default.def - the default value if no entry has been found.
public java.lang.String getMappedTable(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column,
java.lang.String def)
getMappedTable in interface I_Mappercatalog - The catalog name of the source (the master). Null is allowed and means unspecified.schema - The schema name of the source (the master). Null is allowed and means unspecified.table - The table name of the source. On null the behaviour is unspecified and implementation dependant.column - The column name of the source. On null the behaviour is unspecified and implementation dependant.def - the default value if no entry has been found.
public java.lang.String getMappedColumn(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column,
java.lang.String def)
I_Mapper
getMappedColumn in interface I_Mappercatalog - The catalog name of the source (the master). Null is allowed and means unspecified.table - The table name of the source. On null the behaviour is unspecified and implementation dependant.column - The column name of the source. On null the behaviour is unspecified and implementation dependant.def - the default value if no entry has been found.
public java.lang.String getMappedType(java.lang.String catalog,
java.lang.String Schema,
java.lang.String table,
java.lang.String column,
java.lang.String type,
java.lang.String def)
I_Mapper
getMappedType in interface I_Mappercatalog - The catalog name of the source (the master). Null is allowed and means unspecified.table - The table name of the source. On null the behaviour is unspecified and implementation dependant.column - The column name of the source. On null the behaviour is unspecified and implementation dependant.def - the default value if no entry has been found.
public java.util.Set getUsedPropertyKeys()
I_ContribPlugin
getUsedPropertyKeys in interface I_ContribPluginI_ContribPlugin.getUsedPropertyKeys()
public void init(I_Info info)
throws java.lang.Exception
init in interface I_ContribPluginjava.lang.Exception
protected void doInit(I_Info info,
DbMetaHelper dbHelper)
throws java.lang.Exception
java.lang.Exception
public void shutdown()
throws java.lang.Exception
shutdown in interface I_ContribPluginjava.lang.ExceptionI_Plugin
|
xmlBlaster 2.2.0 contributions API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||