|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.exceptions.IntegrityChecker
public class IntegrityChecker
Purpose: IntegrityChecker is used for catching all the descriptor exceptions, and checking database tables. It gives the user options if he/she wants to catch descriptor exceptions, check database, and check InstantiationPolicy or not.
Field Summary | |
---|---|
protected java.util.Vector |
caughtExceptions
To add all the Descriptor exceptions |
protected boolean |
shouldCatchExceptions
To know that should we catch all the descriptors exceptions or not |
protected boolean |
shouldCheckDatabase
To know that should we check database tables or not |
protected boolean |
shouldCheckInstantiationPolicy
To know that should we check InstantiationPolicy or not |
protected java.util.Vector |
tables
To load the tables from database |
Constructor Summary | |
---|---|
IntegrityChecker()
PUBLIC: IntegrityChecker is used for catching all the Descriptor Exceptions, and check database tables. |
Method Summary | |
---|---|
void |
catchExceptions()
PUBLIC: This method is used for catching all the Descriptor Exceptions |
void |
checkDatabase()
PUBLIC: This method is used to check the database tables. |
void |
checkInstantiationPolicy()
PUBLIC: This method is used to check the InstantiationPolicy. |
boolean |
checkTable(DatabaseTable table,
AbstractSession session)
INTERNAL: This method checks that tables are present in the database. |
void |
dontCatchExceptions()
PUBLIC: This method is used for don't catching all the Descriptor Exceptions |
void |
dontCheckDatabase()
PUBLIC: This method is used for don't checking the database tables and fields. |
void |
dontCheckInstantiationPolicy()
PUBLIC: This method is used for don't checking the InstantiationPolicy. |
java.util.Vector |
getCaughtExceptions()
PUBLIC: This method returns the vecotr which adds all the Descriptors Exceptions. |
java.util.Vector |
getTables()
INTERNAL: This method returns a vector which holds all the tables of database |
void |
handleError(java.lang.RuntimeException runtimeException)
INTERNAL: This method handle all the Descriptor Exceptions. |
boolean |
hasErrors()
INTERNAL: Return if any errors occured. |
boolean |
hasRuntimeExceptions()
INTERNAL: Return if any runtime errors occured. |
void |
initializeTables(AbstractSession session)
INTERNAL: This method is used to get all the database tables and add them into a vector. |
void |
setCaughtExceptions(java.util.Vector exceptions)
INTERNAL: |
void |
setShouldCatchExceptions(boolean answer)
PUBLIC: This method assigns the value to the variable (shouldCatchExceptions) that we should catch all Descriptor Exceptions or not. |
void |
setShouldCheckDatabase(boolean answer)
PUBLIC: This method assigns the value to the variable (shouldCheckDatabase) that we should check database or not. |
void |
setShouldCheckInstantiationPolicy(boolean answer)
PUBLIC: This method assigns the value to the variable (shouldCheckInstantiationPolicy) that we should check InstantiationPolicy or not. |
boolean |
shouldCatchExceptions()
PUBLIC: This method is used to know that all the Descriptor Exceptions should be thrown or not. |
boolean |
shouldCheckDatabase()
PUBLIC: This method is used to know that database tables and fields should be checked or not. |
boolean |
shouldCheckInstantiationPolicy()
PUBLIC: This method tells us that we should check InstantiationPolicy or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector caughtExceptions
protected java.util.Vector tables
protected boolean shouldCatchExceptions
protected boolean shouldCheckDatabase
protected boolean shouldCheckInstantiationPolicy
Constructor Detail |
---|
public IntegrityChecker()
Method Detail |
---|
public void catchExceptions()
public void checkDatabase()
public void checkInstantiationPolicy()
public boolean checkTable(DatabaseTable table, AbstractSession session)
public void dontCatchExceptions()
public void dontCheckDatabase()
public void dontCheckInstantiationPolicy()
public java.util.Vector getCaughtExceptions()
public java.util.Vector getTables()
public void handleError(java.lang.RuntimeException runtimeException)
public boolean hasErrors()
public boolean hasRuntimeExceptions()
public void initializeTables(AbstractSession session)
public void setCaughtExceptions(java.util.Vector exceptions)
public void setShouldCatchExceptions(boolean answer)
public void setShouldCheckDatabase(boolean answer)
public void setShouldCheckInstantiationPolicy(boolean answer)
public boolean shouldCatchExceptions()
public boolean shouldCheckDatabase()
public boolean shouldCheckInstantiationPolicy()
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |