public class PatternArg extends java.lang.Object implements PatternArgument
Constructor and Description |
---|
PatternArg(Repository res,
java.lang.String field,
java.lang.Object arg) |
Modifier and Type | Method and Description |
---|---|
void |
addArg(java.sql.PreparedStatement stmt,
int pos)
Add a argument to a PreparedStatment
|
boolean |
canLog()
Is this argument allowed to be logged.
|
java.lang.Object |
getArg()
get the object to apply to this parameter
|
java.lang.String |
getField()
get a field name with the same type as this argument
or null for default conversion.
|
void |
setLog(boolean log) |
public PatternArg(Repository res, java.lang.String field, java.lang.Object arg)
public void addArg(java.sql.PreparedStatement stmt, int pos) throws java.sql.SQLException
PatternArgument
addArg
in interface PatternArgument
stmt
- PreparedStatement to modifypos
- int position to add parameterjava.sql.SQLException
public boolean canLog()
PatternArgument
canLog
in interface PatternArgument
public void setLog(boolean log)
public java.lang.String getField()
getField
in interface PatternArgument
public java.lang.Object getArg()
getArg
in interface PatternArgument