@PublicAPI public class RegenerationChecker extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_OPERATION |
static java.lang.String |
GET_TABLE_COLUMN_DATA_SQL |
static java.lang.String |
OPER_EQUALS |
static java.lang.String |
OPER_NOT_EQUALS |
static java.lang.String |
TAG_CONDITION |
static java.lang.String |
TAG_CT |
static java.lang.String |
TAG_FULL |
static java.lang.String |
TAG_MD |
static java.lang.String |
TAG_NOCT |
static java.lang.String |
TAG_PROPERTY |
static java.lang.String |
TAG_PROPERTY_NAME |
static java.lang.String |
TAG_PROPERTY_VALUE |
Constructor and Description |
---|
RegenerationChecker() |
Modifier and Type | Method and Description |
---|---|
static chemaxon.jchem.version.TableVersion |
deduceTableVersion(java.lang.String tableName,
DatabaseProperties dp)
Deduce a table's version from its properties and current regeneration conditions.
|
static chemaxon.jchem.version.TableVersion |
deduceTableVersion(java.lang.String tableName,
DatabaseProperties dp,
int regenerationType)
Deduce a table's version from its properties and current regeneration conditions.
|
static java.util.List<java.lang.String> |
getColumnsToRegenerate(ConnectionHandler conh,
java.lang.String tableName,
int regenerationType)
Return the columns should be regenerated in a table depending on a regeneration type.
|
static int |
getRegenerationTypeForTable(DatabaseProperties dp,
java.lang.String tableName)
Get which kind of regeneration is needed for a structure table.
|
static java.util.List<java.lang.String> |
getTablesToRegenerate(ConnectionHandler conh,
int regenerationType)
Give back the tables that need a type of regeneration.
|
static java.util.List<java.lang.String> |
getTablesToRegenerate(ConnectionHandler conh,
int regenerationType,
ProgressWriter pw)
Give back the tables that need a type of regeneration.
|
static int |
isRegenerationNeeded(java.lang.String tableName,
DatabaseProperties dp)
Check whether any regeneration type is needed for a table.
|
static int |
isRegenerationNeeded(java.lang.String tableName,
DatabaseProperties dp,
org.w3c.dom.Document xml,
int regenerationType)
Check whether regeneration is needed for a table or not.
|
static int |
isRegenerationNeeded(java.lang.String tableName,
DatabaseProperties dp,
int regenerationType)
Check whether regeneration is needed for a table.
|
static int |
isRegenerationNeededExact(java.lang.String tableName,
DatabaseProperties dp,
org.w3c.dom.Document xml,
int regenerationType)
Check whether a regeneration type is needed for a table or not.
|
public static final java.lang.String TAG_CONDITION
public static final java.lang.String TAG_PROPERTY
public static final java.lang.String TAG_PROPERTY_NAME
public static final java.lang.String TAG_PROPERTY_VALUE
public static final java.lang.String TAG_FULL
public static final java.lang.String TAG_CT
public static final java.lang.String TAG_NOCT
public static final java.lang.String TAG_MD
public static final java.lang.String ATTR_OPERATION
public static final java.lang.String OPER_EQUALS
public static final java.lang.String OPER_NOT_EQUALS
public static final java.lang.String GET_TABLE_COLUMN_DATA_SQL
public static int isRegenerationNeeded(java.lang.String tableName, DatabaseProperties dp) throws java.sql.SQLException
tableName
- Name of the table to be checked.dp
- DatabaseProperties object.java.sql.SQLException
- if an sql error encounteredpublic static int isRegenerationNeeded(java.lang.String tableName, DatabaseProperties dp, int regenerationType) throws java.sql.SQLException
tableName
- Name of the table to be checked.dp
- DatabaseProperties object.regenerationType
- Regeneration type defined in RegenerationConstants
.java.sql.SQLException
- if an sql error encounteredpublic static int isRegenerationNeeded(java.lang.String tableName, DatabaseProperties dp, org.w3c.dom.Document xml, int regenerationType) throws java.sql.SQLException
tableName
- Name of the table to be checked.dp
- DatabaseProperties object.xml
- Xml Document object.regenerationType
- Regeneration type defined in RegenerationConstants
.java.sql.SQLException
- if an sql error encounteredpublic static int isRegenerationNeededExact(java.lang.String tableName, DatabaseProperties dp, org.w3c.dom.Document xml, int regenerationType) throws java.sql.SQLException
tableName
- Name of the table to be checked.dp
- DatabaseProperties object.xml
- Xml Document object.regenerationType
- Regeneration type defined in RegenerationConstants
.java.sql.SQLException
- if an sql error encounteredpublic static chemaxon.jchem.version.TableVersion deduceTableVersion(java.lang.String tableName, DatabaseProperties dp) throws java.sql.SQLException
tableName
- Name of the structure tabledp
- Database Properties object.java.sql.SQLException
- if an sql error encounteredpublic static chemaxon.jchem.version.TableVersion deduceTableVersion(java.lang.String tableName, DatabaseProperties dp, int regenerationType) throws java.sql.SQLException
tableName
- Name of the structure tabledp
- Database Properties object.regenerationType
- Regeneration type defined in RegenerationConstants
.java.sql.SQLException
- if an sql error encounteredpublic static java.util.List<java.lang.String> getTablesToRegenerate(ConnectionHandler conh, int regenerationType) throws java.sql.SQLException
conh
- Connection handler.regenerationType
- Regeneration type defined in RegenerationConstants
.java.sql.SQLException
- if an sql error encounteredpublic static java.util.List<java.lang.String> getTablesToRegenerate(ConnectionHandler conh, int regenerationType, ProgressWriter pw) throws java.sql.SQLException
conh
- Connection handler.regenerationType
- Regeneration type defined in RegenerationConstants
.pw
- Progress writer.java.sql.SQLException
- if an sql error encounteredpublic static int getRegenerationTypeForTable(DatabaseProperties dp, java.lang.String tableName) throws java.sql.SQLException
dp
- DatabaseProperties object.tableName
- Name of the table.RegenerationConstants
.java.sql.SQLException
- if an sql error encounteredpublic static java.util.List<java.lang.String> getColumnsToRegenerate(ConnectionHandler conh, java.lang.String tableName, int regenerationType) throws java.sql.SQLException
conh
- Connection handler.tableName
- Name of the table.regenerationType
- Regeneration type defined in RegenerationConstants
.java.sql.SQLException
- if an sql error encountered