public class SqlDescriptor extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getColumn(int index) |
List<String> |
getColumns() |
String |
getDeleteQuery() |
Set<String> |
getIgnoredProperties() |
static Set<Class<?>> |
getInheritance(Class<?> in) |
String |
getInsertQuery() |
static SqlDescriptor |
getInstance(Class<?> type,
String... ignoredProperties) |
String |
getPrimaryKey() |
Set<String> |
getReadOnlyColumns() |
String |
getSelectQuery() |
String |
getTableName() |
Class<?> |
getType() |
String |
getUpdateQuery() |
protected Object |
getValue(Object item,
String property) |
void |
initializeQueries(Set<String> roCols) |
boolean |
isAccessible(String property) |
boolean |
isMutable(String property) |
boolean |
isReadOnly(String column) |
protected void |
setValue(Object item,
String property,
Object value) |
String |
toString() |
public static SqlDescriptor getInstance(Class<?> type, String... ignoredProperties) throws PrimaryKeyNotFoundException
PrimaryKeyNotFoundExceptionpublic Class<?> getType()
public String getTableName()
public String getPrimaryKey()
public String getColumn(int index)
public String getSelectQuery()
public String getInsertQuery()
public String getUpdateQuery()
public String getDeleteQuery()
protected void setValue(Object item, String property, Object value) throws InvocationTargetException, IllegalAccessException
public boolean isMutable(String property)
public boolean isAccessible(String property)
public boolean isReadOnly(String column)
Copyright © 2013. All rights reserved.