|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.sessions.Project
Purpose: Maintain all of the TopLink configuration information for a system.
Responsibilities:
DatabaseLogin
, Serialized FormConstructor Summary | |
Project() PUBLIC: Create a new project. |
|
Project(DatabaseLogin login) PUBLIC: Create a new project that will connect through JDBC using the login information. |
|
Project(Login login) PUBLIC: Create a new project that will connect through the login information. |
Method Summary | |
void |
addAlias(java.lang.String alias, Descriptor descriptor) PUBLIC: Add an alias for the descriptor. |
void |
addDefaultReadOnlyClass(java.lang.Class readOnlyClass) PUBLIC: Add the read-only class which apply to each UnitOfWork created by default. |
void |
addDescriptor(Descriptor descriptor) PUBLIC: Add the descriptor to the project. |
void |
addDescriptors(Project project, DatabaseSession session) PUBLIC: Merge the descriptors from another project into this one. |
void |
assumeExistenceForDoesExist() PUBLIC: Switch all descriptors to assume existence for non-null primary keys. |
void |
checkCacheForDoesExist() PUBLIC: Switch all descriptors to check the cache for existence. |
void |
checkDatabaseForDoesExist() PUBLIC: Switch all descriptors to check the database for existence. |
void |
conformAllDescriptors() PUBLIC: Set all this project's descriptors to conform all read queries within the context of the unit of work. |
DatabaseSession |
createDatabaseSession() PUBLIC: Factory method to create session. |
Server |
createServerSession() PUBLIC: Factory method to create a server session. |
Server |
createServerSession(ConnectionPolicy defaultConnectionPolicy) PUBLIC: Factory method to create a server session. |
Server |
createServerSession(int min, int max) PUBLIC: Factory method to create a server session. |
ClassDescriptor |
getClassDescriptor(java.lang.Class theClass) PUBLIC: Return the descriptor specified for the class. |
ClassDescriptor |
getClassDescriptorForAlias(java.lang.String alias) PUBLIC: Return the descriptor for the alias |
Login |
getDatasourceLogin() PUBLIC: Return the login, the login holds any database connection information given. |
java.util.Vector |
getDefaultReadOnlyClasses() PUBLIC: Returns the default set of read-only classes. |
Descriptor |
getDescriptor(java.lang.Class theClass) Deprecated. Replaced by getClassDescriptor(Class) |
Descriptor |
getDescriptorForAlias(java.lang.String alias) Deprecated. Replaced by getClassDescriptorForAlias(String) |
java.util.Map |
getDescriptors() PUBLIC: Return the descriptors. |
DatabaseLogin |
getLogin() OBSOLETE: Return the login, the login holds any database connection information given. |
java.lang.String |
getName() PUBLIC: get the name of the project. |
java.lang.String |
getSequenceCounterName() OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
java.lang.String |
getSequenceFieldName() OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
java.lang.Integer |
getSequencePreallocationSize() OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
java.lang.String |
getSequenceTableName() OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
boolean |
getUseNativeSequencing() OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
void |
setDatasourceLogin(Login datasourceLogin) PUBLIC: Set the login to be used to connect to the database for this project. |
void |
setDefaultReadOnlyClasses(java.util.Vector newValue) PUBLIC: Set the read-only classes which apply to each UnitOfWork create by default. |
void |
setDeferModificationsUntilCommit(int deferralLevel) ADVANCED: This method is a 'helper' method for updating all of the descriptors within this project to have a particular deferral level. |
void |
setLogin(DatabaseLogin datasourceLogin) PUBLIC: Set the login to be used to connect to the database for this project. |
void |
setLogin(Login datasourceLogin) PUBLIC: Set the login to be used to connect to the database for this project. |
void |
setLoginAndApplySequenceProperties(DatabaseLogin login) OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
void |
setName(java.lang.String name) PUBLIC: Set the name of the project. |
void |
setSequenceCounterName(java.lang.String counterFieldName) OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
void |
setSequenceFieldName(java.lang.String fieldName) OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
void |
setSequencePreallocationSize(int size) OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
void |
setSequencePreallocationSize(java.lang.Integer size) OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
void |
setSequenceTableName(java.lang.String tableName) OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
void |
setUseNativeSequencing(boolean useNative) OBSOLETE: Left over from MW 2.5 project class generation, should no longer be used. |
void |
useCacheIdentityMap() PUBLIC: Switch all descriptors to use the cache identity map. |
void |
useCacheIdentityMap(int cacheSize) PUBLIC: Switch all descriptors to use the cache identity map the size. |
void |
useFullIdentityMap() PUBLIC: Switch all descriptors to use the full identity map. |
void |
useFullIdentityMap(int initialCacheSize) PUBLIC: Switch all descriptors to use the full identity map with initial cache size. |
void |
useNoIdentityMap() PUBLIC: Switch all descriptors to use no identity map. |
void |
useSoftCacheWeakIdentityMap() PUBLIC: Switch all descriptors to use the soft cache weak identity map. |
void |
useSoftCacheWeakIdentityMap(int cacheSize) PUBLIC: Switch all descriptors to use the soft cache weak identity map with soft cache size. |
void |
useWeakIdentityMap() PUBLIC: Switch all descriptors to use the weak identity map. |
void |
useWeakIdentityMap(int initialCacheSize) PUBLIC: Switch all descriptors to use the weak identity map. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Project()
public Project(Login login)
public Project(DatabaseLogin login)
Method Detail |
public void addDefaultReadOnlyClass(java.lang.Class readOnlyClass)
public void addDescriptor(Descriptor descriptor)
public void addDescriptors(Project project, DatabaseSession session)
public void conformAllDescriptors()
public void assumeExistenceForDoesExist()
public void checkCacheForDoesExist()
public void checkDatabaseForDoesExist()
public DatabaseSession createDatabaseSession()
public Server createServerSession()
public Server createServerSession(int min, int max)
public Server createServerSession(ConnectionPolicy defaultConnectionPolicy)
public java.util.Vector getDefaultReadOnlyClasses()
public ClassDescriptor getClassDescriptor(java.lang.Class theClass)
public Descriptor getDescriptor(java.lang.Class theClass)
getClassDescriptor(Class)
public java.util.Map getDescriptors()
public DatabaseLogin getLogin()
public Login getDatasourceLogin()
public java.lang.String getName()
public java.lang.String getSequenceCounterName()
public java.lang.String getSequenceFieldName()
public java.lang.Integer getSequencePreallocationSize()
public java.lang.String getSequenceTableName()
public boolean getUseNativeSequencing()
public void setDefaultReadOnlyClasses(java.util.Vector newValue)
public void setDeferModificationsUntilCommit(int deferralLevel)
public void setLogin(DatabaseLogin datasourceLogin)
public void setLogin(Login datasourceLogin)
public void setDatasourceLogin(Login datasourceLogin)
public void setLoginAndApplySequenceProperties(DatabaseLogin login)
public void setName(java.lang.String name)
public void setSequenceCounterName(java.lang.String counterFieldName)
public void setSequenceFieldName(java.lang.String fieldName)
public void setSequencePreallocationSize(int size)
public void setSequencePreallocationSize(java.lang.Integer size)
public void setSequenceTableName(java.lang.String tableName)
public void setUseNativeSequencing(boolean useNative)
public void useCacheIdentityMap()
public void useCacheIdentityMap(int cacheSize)
public void useFullIdentityMap()
public void useFullIdentityMap(int initialCacheSize)
public void useNoIdentityMap()
public void useSoftCacheWeakIdentityMap()
public void useSoftCacheWeakIdentityMap(int cacheSize)
public void useWeakIdentityMap()
public void useWeakIdentityMap(int initialCacheSize)
public void addAlias(java.lang.String alias, Descriptor descriptor)
public ClassDescriptor getClassDescriptorForAlias(java.lang.String alias)
public Descriptor getDescriptorForAlias(java.lang.String alias)
getClassDescriptorForAlias(String)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |