|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-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 prject that will connect through JDBC using the login information. |
Method Summary | |
void |
addAlias(java.lang.String alias, Descriptor descriptor) PUBLIC: Add an alias for the descriptor |
void |
addAliasesFromProject(Project project) PUBLIC: Get the descriptors from the project, and associate the aliases for each descriptor with the descriptor. |
void |
addDefaultReadOnlyClass(java.lang.Class readOnlyClass) PUBLIC: Add the read-only class which apply to each UnitOfWork created by default. |
void |
addDescriptors(Project project, oracle.toplink.publicinterface.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. |
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. |
java.util.Vector |
getDefaultReadOnlyClasses() PUBLIC: Returns the default set of read-only classes. |
Descriptor |
getDescriptorForAlias(java.lang.String alias) PUBLIC: Return the descriptor for the alias |
java.util.Hashtable |
getDescriptors() PUBLIC: Return the descriptors. |
DatabaseLogin |
getLogin() PUBLIC: Returns the login, the login was either read from the Builder project file or specified in code. |
java.lang.String |
getName() PUBLIC: get the name of the project. |
void |
setDefaultReadOnlyClasses(java.util.Vector newValue) PUBLIC: Set the read-only classes which apply to each UnitOfWork create by default. |
void |
setLogin(DatabaseLogin login) PUBLIC: Set the login to be used to connect to the database for this project. |
void |
setName(java.lang.String name) PUBLIC: Set the name of the project. |
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(DatabaseLogin login)
Method Detail |
public void addDefaultReadOnlyClass(java.lang.Class readOnlyClass)
public void addDescriptors(Project project, oracle.toplink.publicinterface.DatabaseSession session)
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 java.util.Hashtable getDescriptors()
public DatabaseLogin getLogin()
public java.lang.String getName()
public void setDefaultReadOnlyClasses(java.util.Vector newValue)
public void setLogin(DatabaseLogin login)
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, Descriptor descriptor)
public void addAliasesFromProject(Project project)
public Descriptor getDescriptorForAlias(java.lang.String alias)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |