|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractDeprecatedJDOMappingFactory kodo.jdo.jdbc.TableDeprecatedJDOMappingFactory
public class TableDeprecatedJDOMappingFactory
Specialization of the DeprecatedJDOMetaDataFactory
for mapping
data stored in a database table.
Field Summary | |
---|---|
static String |
ACTION_ADD
|
static String |
ACTION_DROP
|
Constructor Summary | |
---|---|
TableDeprecatedJDOMappingFactory()
|
Method Summary | |
---|---|
void |
clear()
|
int |
deleteMappingRow(String name)
Delete the row with the given name. |
boolean |
drop(Class[] cls,
int mode,
ClassLoader envLoader)
|
void |
dropTable()
Drops the mapping table in the DB. |
void |
endConfiguration()
|
String |
getMappingColumn()
The name of the mapping column on the mapping definition table. |
String |
getNameColumn()
The name of the name on the mapping table. |
Set |
getPersistentTypeNames(boolean devpath,
ClassLoader envLoader)
|
String |
getTableName()
The name of the mapping definition table. |
boolean |
isSingleRow()
Whether to use a single row for all mapping data. |
void |
load(Class cls,
int mode,
ClassLoader envLoader)
|
static void |
main(String[] args)
Usage: java kodo.jdbc.meta.TableDeprecatedJDOMappingFactory [option]* -action/-a <add | drop> |
String |
readMappingColumn(String name)
Returns the mapping column data for the given class. |
void |
refreshTable()
Creates the schema table in the DB. |
static boolean |
run(JDBCConfiguration conf,
String action)
Run the tool. |
static boolean |
run(JDBCConfiguration conf,
String[] args,
Options opts)
Run the tool. |
void |
setConfiguration(Configuration conf)
|
void |
setMappingColumn(String name)
The name of the mapping column on the mapping definition table. |
void |
setNameColumn(String name)
The name of the name on the mapping table. |
void |
setSingleRow(boolean single)
Whether to use a single row for all mapping data. |
void |
setTableName(String name)
The name of the schema definition table. |
void |
startConfiguration()
|
boolean |
store(ClassMetaData[] metas,
QueryMetaData[] queries,
SequenceMetaData[] seqs,
int mode,
Map output)
|
void |
writeMappingColumn(String name,
String mapping)
Writes the mapping as a string to the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ACTION_ADD
public static final String ACTION_DROP
Constructor Detail |
---|
public TableDeprecatedJDOMappingFactory()
Method Detail |
---|
public boolean isSingleRow()
public void setSingleRow(boolean single)
public String getTableName()
JDO_MAPPING
.
public void setTableName(String name)
JDO_MAPPING
.
public void setNameColumn(String name)
NAME
.
public String getNameColumn()
NAME
.
public void setMappingColumn(String name)
MAPPING_DEF
.
public String getMappingColumn()
MAPPING_DEF
.
public void clear()
public Set getPersistentTypeNames(boolean devpath, ClassLoader envLoader)
public void load(Class cls, int mode, ClassLoader envLoader)
public boolean store(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, Map output)
public boolean drop(Class[] cls, int mode, ClassLoader envLoader)
public void refreshTable() throws SQLException
SQLException
public void dropTable() throws SQLException
SQLException
public String readMappingColumn(String name) throws SQLException
SQLException
public void writeMappingColumn(String name, String mapping) throws SQLException
SQLException
public int deleteMappingRow(String name) throws SQLException
SQLException
public void setConfiguration(Configuration conf)
setConfiguration
in interface Configurable
public void startConfiguration()
startConfiguration
in interface Configurable
public void endConfiguration()
endConfiguration
in interface Configurable
public static void main(String[] args) throws IOException, SQLException
Usage: java kodo.jdbc.meta.TableDeprecatedJDOMappingFactory [option]* -action/-a <add | drop>
Where the following options are recognized.
JDBCConfiguration
. Optional.JDBCConfiguration
can be set by
using their names and supplying a value. For example:
-connectionDriverName oracle.jdbc.driver.OracleDriver
The various actions are as follows.
IOException
SQLException
public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws IOException, SQLException
IOException
SQLException
main(java.lang.String[])
public static boolean run(JDBCConfiguration conf, String action) throws IOException, SQLException
IOException
SQLException
|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |