|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.sessions.Project
public class Project
Purpose: Maintain all of the TopLink configuration information for a system.
Responsibilities:
DatabaseLogin
,
Serialized FormConstructor Summary | |
---|---|
Project()
Create a new project. |
|
Project(DatabaseLogin login)
Create a new project that will connect through JDBC using the login information. |
|
Project(Login login)
Create a new project that will connect through the login information. |
Method Summary | |
---|---|
void |
addAlias(java.lang.String alias,
ClassDescriptor descriptor)
Add an alias for the descriptor. |
void |
addDefaultReadOnlyClass(java.lang.Class readOnlyClass)
Add the read-only class which apply to each UnitOfWork created by default. |
void |
addDescriptor(ClassDescriptor descriptor)
Add the descriptor to the project. |
void |
addDescriptors(Project project,
oracle.toplink.internal.sessions.DatabaseSessionImpl session)
Merge the descriptors from another project into this one. |
void |
addSQLResultSetMapping(SQLResultSetMapping sqlResultSetMapping)
Add a named SQLResultSetMapping to this project. |
void |
assumeExistenceForDoesExist()
Switch all descriptors to assume existence for non-null primary keys. |
void |
checkCacheForDoesExist()
Switch all descriptors to check the cache for existence. |
void |
checkDatabaseForDoesExist()
Switch all descriptors to check the database for existence. |
void |
conformAllDescriptors()
Set all this project's descriptors to conform all read queries within the context of the unit of work. |
DatabaseSession |
createDatabaseSession()
Factory method to create session. |
Server |
createServerSession()
Factory method to create a server session. |
Server |
createServerSession(ConnectionPolicy defaultConnectionPolicy)
Factory method to create a server session. |
Server |
createServerSession(int min,
int max)
Factory method to create a server session. |
ClassDescriptor |
getClassDescriptor(java.lang.Class theClass)
Return the descriptor specified for the class. |
Login |
getDatasourceLogin()
Return the login, the login holds any database connection information given. |
java.util.Vector |
getDefaultReadOnlyClasses()
Returns the default set of read-only classes. |
boolean |
getDefaultTemporalMutable()
Return the default setting for configuring if dates and calendars are mutable. |
ClassDescriptor |
getDescriptor(java.lang.Class theClass)
Return the descriptor specified for the class. |
ClassDescriptor |
getDescriptorForAlias(java.lang.String alias)
Return the descriptor for the alias |
java.util.Map |
getDescriptors()
Return the descriptors. |
int |
getJPQLParseCacheMaxSize()
ADVANCED: Return the JPQL parse cache max size. |
DatabaseLogin |
getLogin()
OBSOLETE: Return the login, the login holds any database connection information given. |
java.lang.String |
getName()
get the name of the project. |
SQLResultSetMapping |
getSQLResultSetMapping(java.lang.String sqlResultSetMapping)
Get a named SQLResultSetMapping from this project. |
void |
setDatasourceLogin(Login datasourceLogin)
Set the login to be used to connect to the database for this project. |
void |
setDefaultReadOnlyClasses(java.util.Vector newValue)
Set the read-only classes which apply to each UnitOfWork create by default. |
void |
setDefaultTemporalMutable(boolean defaultTemporalMutable)
Set the default setting for configuring if dates and calendars are mutable. |
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 |
setJPQLParseCacheMaxSize(int maxSize)
ADVANCED: Set the JPQL parse cache max size. |
void |
setLogin(DatabaseLogin datasourceLogin)
Set the login to be used to connect to the database for this project. |
void |
setLogin(Login datasourceLogin)
Set the login to be used to connect to the database for this project. |
void |
setName(java.lang.String name)
Set the name of the project. |
void |
useCacheIdentityMap()
Switch all descriptors to use the cache identity map. |
void |
useCacheIdentityMap(int cacheSize)
Switch all descriptors to use the cache identity map the size. |
void |
useFullIdentityMap()
Switch all descriptors to use the full identity map. |
void |
useFullIdentityMap(int initialCacheSize)
Switch all descriptors to use the full identity map with initial cache size. |
void |
useNoIdentityMap()
Switch all descriptors to use no identity map. |
void |
useSoftCacheWeakIdentityMap()
Switch all descriptors to use the soft cache weak identity map. |
void |
useSoftCacheWeakIdentityMap(int cacheSize)
Switch all descriptors to use the soft cache weak identity map with soft cache size. |
void |
useWeakIdentityMap()
Switch all descriptors to use the weak identity map. |
void |
useWeakIdentityMap(int initialCacheSize)
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 boolean getDefaultTemporalMutable()
public void setDefaultTemporalMutable(boolean defaultTemporalMutable)
public void setJPQLParseCacheMaxSize(int maxSize)
public int getJPQLParseCacheMaxSize()
public void addDefaultReadOnlyClass(java.lang.Class readOnlyClass)
public void addDescriptor(ClassDescriptor descriptor)
public void addDescriptors(Project project, oracle.toplink.internal.sessions.DatabaseSessionImpl session)
public void addSQLResultSetMapping(SQLResultSetMapping sqlResultSetMapping)
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 ClassDescriptor getDescriptor(java.lang.Class theClass)
public java.util.Map getDescriptors()
public DatabaseLogin getLogin()
public Login getDatasourceLogin()
public java.lang.String getName()
public SQLResultSetMapping getSQLResultSetMapping(java.lang.String sqlResultSetMapping)
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 setName(java.lang.String name)
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, ClassDescriptor descriptor)
public ClassDescriptor getDescriptorForAlias(java.lang.String alias)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |