Class Environment
java.lang.Object
com.sun.jdo.api.persistence.enhancer.util.Assertion
com.sun.jdo.api.persistence.enhancer.util.Support
com.sun.jdo.api.persistence.enhancer.impl.Environment
Environment serves as a central collection for the options and
working environment of the filter tool.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClass(ClassControl cc) Add the class to the class mapping table.booleancanFindClass(String className) Look for the specified class in the class map.Return an ArrayList of the ClassControls in classMap.collectClasses(int persistType) Return a ArrayList of ClassControl objects which have the specified persistence typebooleanbooleanbooleanvoidintvoidUpdate the class path to remove the destination directory if it is found in the class path.Look for the specified class in the class map.booleanLook for the specified class in the class map.Is the class a well known persistent capable class?final StringbooleanlookupClass(String className) Look up the specified class in the class search path.lookupDestClass(String className) Look for a class source using the destination directory as a root directory for the lookup which represents the annotated output for the class specified.voidvoidvoidUpdate the class path to move the destination directory to the end of the class path if it is found in the class path.voidreset()Reset the environment.voidvoidsetDoTimingStatistics(boolean dontOpt) voidvoidsetForceOverwrite(boolean forceOverwrite) voidsetJDOMetaData(JDOMetaData jdoMetaData) voidsetNoInitializerOptimization(boolean dontOpt) voidsetNoOptimization(boolean dontOpt) voidsetNoThisOptimization(boolean dontOpt) voidsetNoWrite(boolean dontWrite) voidvoidsetQuiet(boolean beQuiet) voidsetVerbose(boolean beVerbose) voidsuppressClassWarnings(String className) Add a suppression entry for a classvoidsuppressFieldWarnings(String fullFieldName) Add a suppression entry for a field of a classbooleanvoidvoidvoidbooleanExpected dump levels are 0, 1, 2, 3 dump level 0 is always on.Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Support
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N
-
Constructor Details
-
Environment
public Environment()The constructor
-
-
Method Details
-
setDoTimingStatistics
public void setDoTimingStatistics(boolean dontOpt) -
doTimingStatistics
public boolean doTimingStatistics() -
error
-
warning
-
warning
-
warning
-
message
-
messageNL
-
errorCount
public int errorCount() -
getLastErrorMessage
-
forceOverwrite
public boolean forceOverwrite() -
updateInPlace
public boolean updateInPlace() -
destinationDirectory
-
writeClasses
public boolean writeClasses()Expected dump levels are 0, 1, 2, 3 dump level 0 is always on. -
doThisOptimization
public boolean doThisOptimization() -
doInitializerOptimization
public boolean doInitializerOptimization() -
getJDOMetaData
Is the class a well known persistent capable class? These are normally the java primitives. -
setJDOMetaData
-
addClass
Add the class to the class mapping table. Check that it does not conflict with earlier settings. -
canFindClass
Look for the specified class in the class map. If not there, use the class path to find the class. If still not found, return false. -
getClass
Look for the specified class in the class map. No other class lookup is performed. Use this only if you are certain that the class will have been found. -
getClasses
-
findClass
Look for the specified class in the class map. If not there, use the class path to find the class. If still not found, return false. -
lookupClass
Look up the specified class in the class search path. Callers should normally consult the classmap prior to calling this function. The class is not entered into the classmap -
collectClasses
Return a ArrayList of ClassControl objects which have the specified persistence type -
collectClasses
Return an ArrayList of the ClassControls in classMap. This is useful in that it provides a stable base for enumeration. -
lookupDestClass
Look for a class source using the destination directory as a root directory for the lookup which represents the annotated output for the class specified. Return null if not found. -
setDestinationDirectory
-
excludeDestinationDirectory
public void excludeDestinationDirectory()Update the class path to remove the destination directory if it is found in the class path. -
moveDestinationDirectoryToEnd
public void moveDestinationDirectoryToEnd()Update the class path to move the destination directory to the end of the class path if it is found in the class path. -
setOutputWriter
-
getOutputWriter
-
setErrorWriter
-
getErrorWriter
-
setVerbose
public void setVerbose(boolean beVerbose) -
isVerbose
public boolean isVerbose() -
setQuiet
public void setQuiet(boolean beQuiet) -
setNoWrite
public void setNoWrite(boolean dontWrite) -
setNoThisOptimization
public void setNoThisOptimization(boolean dontOpt) -
setNoInitializerOptimization
public void setNoInitializerOptimization(boolean dontOpt) -
setNoOptimization
public void setNoOptimization(boolean dontOpt) -
setForceOverwrite
public void setForceOverwrite(boolean forceOverwrite) -
suppressClassWarnings
Add a suppression entry for a class -
suppressFieldWarnings
Add a suppression entry for a field of a class -
reset
public void reset()Reset the environment.
-