public class DMapping
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
DMapping() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteMapping(int mappingID)
Deletes a mapping from the database.
|
static void |
deleteMappingSet(int mappingSetID)
Deletes a mapping set from the database, based on the ID.
|
static java.sql.ResultSet |
getExtractorPatternTokensForMappingSetID(int mappingSetID)
Gets all extractor pattern tokens for the mapping set ID.
|
static java.sql.ResultSet |
getMappingSet(int mappingSetID)
Gets a record for a mapping set, based on the ID.
|
static java.sql.ResultSet |
getMappingSets()
Gets all mapping sets.
|
static java.sql.ResultSet |
getMappingsForMappingSet(int mappingSetID)
Gets all mappings corresponding to the given set.
|
static int |
setMapping(int mappingID,
int mappingSetID,
java.lang.String toValue,
java.lang.String fromValue,
int mappingType,
boolean isCaseSensitive,
int sequence)
Saves a mapping to the database.
|
static int |
setMappingSet(int mappingSetID,
java.lang.String name)
Saves a mapping set to the database.
|
public static int setMapping(int mappingID, int mappingSetID, java.lang.String toValue, java.lang.String fromValue, int mappingType, boolean isCaseSensitive, int sequence)
mappingID
- The ID of the mapping.mappingSetID
- The ID of the mapping set.toValue
- The "to" value.fromValue
- The "from" value.mappingType
- The type.isCaseSensitive
- Indicates whether or not the match
should be case sensitive.sequence
- The sequence of the mapping.public static java.sql.ResultSet getMappingsForMappingSet(int mappingSetID)
mappingSetID
- The ID of the mapping set.ResultSet
containing all of the mappings.public static void deleteMapping(int mappingID)
mappingID
- The ID of the mapping.public static int setMappingSet(int mappingSetID, java.lang.String name)
mappingSetID
- The ID of the mapping set.name
- The name of the set.public static java.sql.ResultSet getMappingSet(int mappingSetID)
mappingSetID
- The ID of the mapping.ResultSet
containing a mapping set record.public static java.sql.ResultSet getMappingSets()
ResultSet
containing MappingSet
data.public static void deleteMappingSet(int mappingSetID)
mappingSetID
- The ID of the mapping.public static java.sql.ResultSet getExtractorPatternTokensForMappingSetID(int mappingSetID)
mappingSetID
- The ID of the mapping set.