|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.services.DevelopmentServices
public class DevelopmentServices
Purpose: Provide a dynamic interface into the EclipseLink Identity Map Manager.
Description: This class is meant to provide a framework for gaining access to configuration and statistics of the EclipseLink Cache during runtime. It will provide the basis for development of a JMX service and possibly other frameworks.
Field Summary | |
---|---|
protected Session |
session
stores access to the session object that we are controlling |
Constructor Summary | |
---|---|
DevelopmentServices()
Default constructor |
|
DevelopmentServices(Session session)
Constructor |
Method Summary | |
---|---|
protected org.eclipse.persistence.internal.sessions.AbstractSession |
getSession()
INTERNAL: |
boolean |
getShouldBindAllParameters()
Method returns if all Parameters should be bound or not |
int |
getStringBindingSize()
Return the size of strings after which will be bound into the statement |
boolean |
getUsesBatchWriting()
This method will return if batchWriting is in use or not. |
boolean |
getUsesByteArrayBinding()
Shows if Byte Array Binding is turned on or not |
boolean |
getUsesJDBCBatchWriting()
This method will return if batchWriting is in use or not. |
boolean |
getUsesNativeSQL()
Shows if native SQL is being used |
boolean |
getUsesStreamsForBinding()
This method indicates if streams are being used for binding |
boolean |
getUsesStringBinding()
This method indicates if Strings are being bound |
void |
initializeAllIdentityMaps()
This method is used to clear the contents of all identity maps. |
void |
initializeIdentityMap(java.lang.String className)
This method is used to clear the contents of a particular identity map. |
void |
refreshProject(java.lang.String projectFilePath)
This method used to reset a project in a session. |
void |
setIdentityMapForClass(java.lang.String className,
java.lang.String identityMapClassType,
int maxSize)
This method will be used to set a new type of identity map for a particular class type. |
void |
setShouldBindAllParameters(boolean shouldBindAllParameters)
This method is used to control if All parameters should be bound |
void |
setStringBindingSize(int size)
Sets the size of strings after which they will be bound into the statement |
void |
setUsesBatchWriting(boolean usesBatchWriting)
This method is used to turn on EclipseLink Batch Writing. |
void |
setUsesByteArrayBinding(boolean usesByteArrayBinding)
This method allows control of whether byte arrays should be bound into the statement or not. |
void |
setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)
This method is used to turn on JDBC Batch Writing. |
void |
setUsesNativeSQL(boolean usesNativeSQL)
This method allows the client to set if Native SQL should be used. |
void |
setUsesStreamsForBinding(boolean usesStreamsForBinding)
This method is used to set if streams should be used for binding. |
void |
setUsesStringBinding(boolean usesStringBinding)
Allows the client to set if String should be bound into the statement or not. |
void |
updateCacheSize(java.lang.String className,
int newSize)
This method is used to update the cache size of a particular Identity Map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Session session
Constructor Detail |
---|
public DevelopmentServices()
public DevelopmentServices(Session session)
session
- the session for these servicesMethod Detail |
---|
public void initializeIdentityMap(java.lang.String className) throws java.lang.ClassNotFoundException
className
- the fully qualified name of the class for which the identity map should be cleared.
java.lang.ClassNotFoundException
- thrown then the IdenityMap for that class name could not be foundpublic void initializeAllIdentityMaps()
public void setIdentityMapForClass(java.lang.String className, java.lang.String identityMapClassType, int maxSize) throws java.lang.ClassNotFoundException
className
- the fully qualified className to set the identity map for.identityMapClassType
- the fully qualified class name of the new identity map type.maxSize
- the maximum size to be specified for the new identity map.
java.lang.ClassNotFoundException
- thrown then the IdenityMap for that class name could not be foundpublic void refreshProject(java.lang.String projectFilePath)
projectFilePath
- the filename of the project xml file to build the new project from.public void updateCacheSize(java.lang.String className, int newSize) throws java.lang.ClassNotFoundException
className
- the name of the class for which to update the identity map size.
java.lang.ClassNotFoundException
- thrown then the IdenityMap for that class name could not be foundpublic void setShouldBindAllParameters(boolean shouldBindAllParameters)
public boolean getShouldBindAllParameters()
public void setStringBindingSize(int size)
public int getStringBindingSize()
public void setUsesBatchWriting(boolean usesBatchWriting)
public boolean getUsesBatchWriting()
public void setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)
public boolean getUsesJDBCBatchWriting()
public void setUsesByteArrayBinding(boolean usesByteArrayBinding)
public boolean getUsesByteArrayBinding()
public void setUsesNativeSQL(boolean usesNativeSQL)
public boolean getUsesNativeSQL()
public void setUsesStreamsForBinding(boolean usesStreamsForBinding)
public boolean getUsesStreamsForBinding()
public void setUsesStringBinding(boolean usesStringBinding)
public boolean getUsesStringBinding()
protected org.eclipse.persistence.internal.sessions.AbstractSession getSession()
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |