|
Kodo 4.1.4 generated on June 22 2007 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.meta.AbstractMetaDataFactory
org.apache.openjpa.meta.AbstractCFMetaDataFactory
kodo.jdo.JDOMetaDataFactory
kodo.jdo.DeprecatedJDOMetaDataFactory
kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory
kodo.jdo.jdbc.TableDeprecatedJDOMappingFactory
public class TableDeprecatedJDOMappingFactory
Specialization of the DeprecatedJDOMetaDataFactory
for mapping
data stored in a database table.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory |
---|
kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory.ClassMappingAttrs, kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory.FieldMappingAttrs, kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory.MappingAttrs, kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory.MappingAttrsParser, kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory.MappingAttrsRepository, kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory.MappingAttrsSerializer |
Nested classes/interfaces inherited from class kodo.jdo.DeprecatedJDOMetaDataFactory |
---|
DeprecatedJDOMetaDataFactory.ExtensionTranslatingParser |
Nested classes/interfaces inherited from class org.apache.openjpa.meta.AbstractCFMetaDataFactory |
---|
AbstractCFMetaDataFactory.Parser, AbstractCFMetaDataFactory.Serializer |
Field Summary | |
---|---|
static String |
ACTION_ADD
|
static String |
ACTION_DROP
|
Fields inherited from class kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory |
---|
CLASS_EXTENSIONS, EXT_CLASS_IND_NAME, EXT_CLASS_IND_VALUE, EXT_CLASS_MAP_NAME, EXT_DELETE_ACTION, EXT_FIELD_MAP_NAME, EXT_INDEXED, EXT_JDBC_TYPE, EXT_NULL_IND, EXT_ORDERED, EXT_SIZE, EXT_SQL_TYPE, EXT_VERSION_IND_NAME, FIELD_EXTENSIONS, JDBC, JDBC_CLASS_IND, JDBC_VERSION_IND, KODO, REF |
Fields inherited from class kodo.jdo.DeprecatedJDOMetaDataFactory |
---|
ELEMENT, EXT_AUTO_INCREMENT, EXT_DEPENDENT, EXT_DETACHABLE, EXT_EAGER_FETCH_MODE, EXT_FETCH_GROUP, EXT_INVERSE_OWNER, EXT_SEQUENCE_ASSIGNED, EXT_SEQUENCE_FACTORY, EXT_SEQUENCE_NAME, EXT_SUBCLASS_FETCH_MODE, KEY, VALUE |
Fields inherited from class org.apache.openjpa.meta.AbstractCFMetaDataFactory |
---|
cpath, files, rsrcs, urls |
Fields inherited from class org.apache.openjpa.meta.AbstractMetaDataFactory |
---|
dir, log, repos, store, strict, types |
Fields inherited from interface org.apache.openjpa.meta.MetaDataFactory |
---|
STORE_DEFAULT, STORE_PER_CLASS, STORE_VERBOSE |
Fields inherited from interface org.apache.openjpa.meta.MetaDataModes |
---|
MODE_MAPPING, MODE_MAPPING_INIT, MODE_META, MODE_NONE, MODE_QUERY |
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 kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory |
---|
addClassExtensionKeys, addFieldExtensionKeys, fromMappingAttrs, newMappingParser, newMappingSerializer, setStrict, stripDeprecatedExtensions, stripMappingExtensions, toMappingAttrs, translateClassExtension, translateFieldExtension |
Methods inherited from class kodo.jdo.DeprecatedJDOMetaDataFactory |
---|
newParser |
Methods inherited from class org.apache.openjpa.meta.AbstractCFMetaDataFactory |
---|
backupAndDelete, clearMapping, getDefiningMetaData, getSourceFile, getSourceFile, isMappingOnlyFactory, mapPersistentTypeNames, parse, parse, serialize, setClasspathScan, setClasspathScan, setFiles, setFiles, setResources, setResources, setSourceFile, setSourceFile, setURLs, setURLs |
Methods inherited from class org.apache.openjpa.meta.AbstractMetaDataFactory |
---|
getQueryScope, getResultSetMappingScope, setRepository, setStoreDirectory, setStoreMode, setTypes, setTypes |
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()
clear
in interface MetaDataFactory
clear
in class JDOMetaDataFactory
public Set getPersistentTypeNames(boolean devpath, ClassLoader envLoader)
getPersistentTypeNames
in interface MetaDataFactory
getPersistentTypeNames
in class AbstractCFMetaDataFactory
public void load(Class cls, int mode, ClassLoader envLoader)
load
in interface MetaDataFactory
load
in class JDOMetaDataFactory
public boolean store(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, Map output)
store
in interface MetaDataFactory
store
in class AbstractCFMetaDataFactory
public boolean drop(Class[] cls, int mode, ClassLoader envLoader)
drop
in interface MetaDataFactory
drop
in class AbstractCFMetaDataFactory
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:
-licenseKey adslfja83r3lkadf
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.1.4 generated on June 22 2007 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |