public class MetadataSchemaDAOImpl extends AbstractHibernateDAO<MetadataSchema> implements MetadataSchemaDAO
| Modifier | Constructor and Description |
|---|---|
protected |
MetadataSchemaDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
MetadataSchema |
find(Context context,
String shortName)
Get the schema corresponding with this short name.
|
List<MetadataSchema> |
findAll(Context context,
Class clazz)
Fetch all persisted instances of a given object type.
|
MetadataSchema |
findByNamespace(Context context,
String namespace)
Get the schema object corresponding to this namespace URI.
|
boolean |
uniqueNamespace(Context context,
int metadataSchemaId,
String namespace)
Return true if and only if the passed name appears within the allowed
number of times in the current schema.
|
boolean |
uniqueShortName(Context context,
int metadataSchemaId,
String name)
Return true if and only if the passed name is unique.
|
count, count, countLong, create, createCriteria, createCriteria, createQuery, delete, findByID, findByID, findMany, findMany, findUnique, getHibernateSession, iterate, list, list, save, singleResult, singleResult, uniqueResult, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, delete, findByID, findByID, findMany, findUnique, savepublic MetadataSchema findByNamespace(Context context, String namespace) throws SQLException
findByNamespace in interface MetadataSchemaDAOcontext - DSpace contextnamespace - namespace URI to matchSQLException - if database errorpublic List<MetadataSchema> findAll(Context context, Class clazz) throws SQLException
GenericDAOfindAll in interface GenericDAO<MetadataSchema>findAll in class AbstractHibernateDAO<MetadataSchema>clazz - the desired type.SQLException - if database errorpublic boolean uniqueNamespace(Context context, int metadataSchemaId, String namespace) throws SQLException
uniqueNamespace in interface MetadataSchemaDAOcontext - DSpace contextmetadataSchemaId - schema idnamespace - namespace URI to matchSQLException - if database errorpublic boolean uniqueShortName(Context context, int metadataSchemaId, String name) throws SQLException
uniqueShortName in interface MetadataSchemaDAOcontext - DSpace contextmetadataSchemaId - schema idname - short name of schemaSQLException - if database errorpublic MetadataSchema find(Context context, String shortName) throws SQLException
find in interface MetadataSchemaDAOcontext - context, in case we need to read it in from DBshortName - the short name for the schemaSQLException - if database errorCopyright © 2017 DuraSpace. All rights reserved.