org.edg.info
Class TupleChecker
java.lang.Object
org.edg.info.TupleChecker
- public class TupleChecker
- extends java.lang.Object
Tuple checker for one table in a producer.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TupleChecker
public TupleChecker(java.lang.String predicate,
CreateTableStatement createTable)
throws org.glite.rgma.system.RGMAUserException
- Creates a new TupleChecker object. Parses predicate and sets up
fixedColumns and columnTypes structures.
- Parameters:
predicate
- SQL WHERE clause.createTable
- SQL CREATE TABLE statement.
- Throws:
org.glite.rgma.system.RGMAUserException
- If the predicate is invalid.
getCreateTable
public CreateTableStatement getCreateTable()
getPredicate
public java.lang.String getPredicate()
checkInsert
public void checkInsert(FastInsertStatement insertStatement,
java.text.SimpleDateFormat dateFormat)
throws org.glite.rgma.system.RGMAUserException
- Parses the array of INSERT statements and checks that each tuple
is valid with respect to the producer predicate and the table definition.
- Returns:
- An array of parsed INSERT statements.
- Throws:
org.glite.rgma.system.RGMAUserException
org.glite.rgma.system.RGMAUserException
- If any of the inserts/tuples is invalid.