Class NoneClassStrategy
java.lang.Object
org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractClassStrategy
org.apache.openjpa.jdbc.meta.strats.NoneClassStrategy
- All Implemented Interfaces:
Serializable,ClassStrategy,Strategy
Strategy for classes that aren't mapped.
- Author:
- Abe White
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractClassStrategy
cls -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(OpenJPAStateManager sm, JDBCStore store, RowManager rm) Set the where values appropriately to delete the proper instance, and set all relations on non-secondary tables as updates.getAlias()Return the alias of this strategy.static NoneClassStrategyReturn the singleton instance.voidinsert(OpenJPAStateManager sm, JDBCStore store, RowManager rm) Set values for the mapping into the proper rows.voidsetClassMapping(ClassMapping owner) Set the class mapping using this strategy.voidupdate(OpenJPAStateManager sm, JDBCStore store, RowManager rm) Set values for the mapping into the proper rows.Methods inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractClassStrategy
customLoad, customLoad, customLoad, isPrimaryKeyObjectId, joinSuperclass, supportsEagerSelectMethods inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdate, mapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.jdbc.meta.Strategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdate, map
-
Field Details
-
ALIAS
- See Also:
-
-
Method Details
-
getInstance
Return the singleton instance. -
getAlias
Description copied from interface:StrategyReturn the alias of this strategy. For custom strategies, return the full class name.- Specified by:
getAliasin interfaceStrategy- Overrides:
getAliasin classAbstractStrategy
-
setClassMapping
Description copied from interface:ClassStrategySet the class mapping using this strategy. This will be called before use.- Specified by:
setClassMappingin interfaceClassStrategy- Overrides:
setClassMappingin classAbstractClassStrategy
-
insert
Description copied from interface:StrategySet values for the mapping into the proper rows. For class mappings, this method will be called only after the corresponding method has been called for all fields of this mapping.- Specified by:
insertin interfaceStrategy- Overrides:
insertin classAbstractStrategy- Throws:
SQLException
-
update
Description copied from interface:StrategySet values for the mapping into the proper rows.- Specified by:
updatein interfaceStrategy- Overrides:
updatein classAbstractStrategy- Throws:
SQLException- See Also:
-
delete
Description copied from interface:StrategySet the where values appropriately to delete the proper instance, and set all relations on non-secondary tables as updates. This allows foreign key analysis.- Specified by:
deletein interfaceStrategy- Overrides:
deletein classAbstractStrategy- Throws:
SQLException- See Also:
-