public abstract class AbstractJdbcType extends Object implements AttributedType, Serializable
AttributedType.QUERY_ATTRIBUTE| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
dataSource |
protected String |
id |
protected AttributedType |
type |
ID| Constructor and Description |
|---|
AbstractJdbcType() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
delete(AttributedType attributedType)
Delete
AttributedType |
abstract void |
deleteRelationships(AttributedType attributedType)
Delete all the
Relationship the AttributedType
is involved in. |
DataSource |
getDataSource()
Get the
DataSource |
String |
getId() |
AttributedType |
getType() |
protected Object[] |
getValuesFromParamMap(Map<QueryParameter,Object[]> params,
AttributeParameter attributeParameter) |
abstract List<? extends AttributedType> |
load(Map<QueryParameter,Object[]> params,
Class<? extends AttributedType> attributedType)
Load a list of
AttributedType given various parameters |
abstract AttributedType |
load(String id,
AttributedType attributedType)
Load an
AttributedType given its id |
abstract AttributedType |
load(String id,
Class<? extends AttributedType> attributedType)
Load an
AttributedType given its id and the type |
abstract void |
persist(AttributedType attributedType)
Store the
AttributedType in the database |
AbstractJdbcType |
setDataSource(DataSource dataSource)
Set the
DataSource |
void |
setId(String id)
Set the ID
|
AbstractJdbcType |
setType(AttributedType attributedType) |
abstract void |
update(AttributedType attributedType)
Update the stored
AttributedType in the database |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributes, removeAttribute, setAttributeprotected String id
protected DataSource dataSource
protected AttributedType type
public String getId()
getId in interface AttributedTypeAttributedType.getId()public void setId(String id)
setId in interface AttributedTypeid - public AbstractJdbcType setDataSource(DataSource dataSource)
DataSourcedataSource - public DataSource getDataSource()
DataSourcepublic AbstractJdbcType setType(AttributedType attributedType)
public AttributedType getType()
public abstract void delete(AttributedType attributedType)
AttributedTypeattributedType - public abstract void deleteRelationships(AttributedType attributedType)
Relationship the AttributedType
is involved in.attributedType - public abstract AttributedType load(String id, AttributedType attributedType)
AttributedType given its idid - attributedType - public abstract AttributedType load(String id, Class<? extends AttributedType> attributedType)
AttributedType given its id and the typeid - attributedType - public abstract List<? extends AttributedType> load(Map<QueryParameter,Object[]> params, Class<? extends AttributedType> attributedType)
AttributedType given various parametersparams - attributedType - public abstract void persist(AttributedType attributedType)
AttributedType in the databaseattributedType - public abstract void update(AttributedType attributedType)
AttributedType in the databaseattributedType - protected Object[] getValuesFromParamMap(Map<QueryParameter,Object[]> params, AttributeParameter attributeParameter)
Copyright © 2014. All Rights Reserved.