public final class ConditionsObjectUtilities extends Object
ConditionsObject
s.Modifier and Type | Field and Description |
---|---|
private static DatabaseConditionsManager |
MANAGER
Static instance of conditions manager.
|
Modifier | Constructor and Description |
---|---|
private |
ConditionsObjectUtilities()
Do not allow class to be instantiated.
|
Modifier and Type | Method and Description |
---|---|
static Object |
convertValue(Class<?> type,
String value)
Convert from a raw string into a specific type.
|
static String |
getColumnClassName(TableMetaData tableMetaData,
String columnName)
Get the class name of a column.
|
static ConditionsObjectCollection<?> |
newCollection(String tableName)
Create a new conditions collection from the table name.
|
static ConditionsObject |
newObject(String tableName)
Create a new conditions object from the table name.
|
static void |
setupPreparedStatement(PreparedStatement statement,
ConditionsObject object)
Setup a prepared statement from
ConditionsObject data. |
private static final DatabaseConditionsManager MANAGER
private ConditionsObjectUtilities()
public static Object convertValue(Class<?> type, String value) throws ConditionsObjectException
type
- the target typevalue
- the raw valueConditionsObjectException
public static String getColumnClassName(TableMetaData tableMetaData, String columnName) throws SQLException
tableMetaData
- the table meta datacolumnName
- the column nameSQLException
- if there is a problem querying the databasepublic static ConditionsObjectCollection<?> newCollection(String tableName) throws ConditionsObjectException
tableName
- the name of the tableConditionsObjectException
- if there is an error creating the collectionpublic static ConditionsObject newObject(String tableName) throws ConditionsObjectException
tableName
- the name of the tableConditionsObjectException
- if there is an error creating the objectpublic static void setupPreparedStatement(PreparedStatement statement, ConditionsObject object) throws SQLException
ConditionsObject
data.statement
- the SQL PreparedStatement
object
- the ConditionsObject
with the dataSQLException
- if there is a problem querying the databaseCopyright © 2019. All rights reserved.