public class DCType
extends java.lang.Object
The DCType implementation has been deprecated, please use MetadataManager, MetadataSchema and MetadataField instead. For backward compatibility the this implementation has been updated to transparently call the new classes.
| Constructor and Description |
|---|
DCType(Context context)
Deprecated.
|
DCType(Context context,
MetadataField field)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static DCType |
create(Context context)
Deprecated.
|
void |
delete()
Deprecated.
|
static DCType |
find(Context context,
int id)
Deprecated.
|
static DCType[] |
findAll(Context context)
Deprecated.
|
static DCType |
findByElement(Context context,
java.lang.String element,
java.lang.String qualifier)
Deprecated.
|
java.lang.String |
getElement()
Deprecated.
Get the DC element
|
int |
getID()
Deprecated.
Get the internal identifier of this metadata field
|
java.lang.String |
getQualifier()
Deprecated.
Get the DC qualifier, if any.
|
java.lang.String |
getScopeNote()
Deprecated.
Get the scope note - information about the DC type and its use
|
static java.lang.String[] |
quickFind(Context context,
int id)
Deprecated.
|
void |
setElement(java.lang.String s)
Deprecated.
Set the DC element
|
void |
setQualifier(java.lang.String s)
Deprecated.
Set the DC qualifier
|
void |
setScopeNote(java.lang.String s)
Deprecated.
Set the scope note
|
void |
update()
Deprecated.
|
public DCType(Context context, MetadataField field)
context - field - public DCType(Context context)
context - public static java.lang.String[] quickFind(Context context, int id) throws java.sql.SQLException
context - context, in case DC types need to be read in from DBid - the DC type IDjava.sql.SQLExceptionpublic static DCType find(Context context, int id) throws java.sql.SQLException
context - DSpace context objectid - ID of the dublin core typejava.sql.SQLExceptionpublic static DCType findByElement(Context context, java.lang.String element, java.lang.String qualifier) throws java.sql.SQLException, AuthorizeException
null if the Dublin
Core type doesn't exist.context - the DSpace context to useelement - the element to findqualifier - the qualifier, or null to find an unqualified
typenull if there isn't a
corresponding type in the registryAuthorizeExceptionjava.sql.SQLExceptionpublic static DCType[] findAll(Context context) throws java.sql.SQLException
java.sql.SQLExceptionpublic static DCType create(Context context) throws java.sql.SQLException, AuthorizeException, java.io.IOException, NonUniqueMetadataException
context - DSpace context objectNonUniqueMetadataExceptionjava.io.IOExceptionjava.sql.SQLExceptionAuthorizeExceptionpublic void delete()
throws java.sql.SQLException,
AuthorizeException
SQLException (referential integrity violation) will be
thrown in this case.java.sql.SQLExceptionAuthorizeExceptionpublic int getID()
public java.lang.String getElement()
public void setElement(java.lang.String s)
s - the new elementpublic java.lang.String getQualifier()
null if this is an
unqualified elementpublic void setQualifier(java.lang.String s)
s - the DC qualifier, or null if this is an
unqualified elementpublic java.lang.String getScopeNote()
public void setScopeNote(java.lang.String s)
s - the new scope notepublic void update()
throws java.sql.SQLException,
AuthorizeException,
NonUniqueMetadataException,
java.io.IOException
java.io.IOExceptionNonUniqueMetadataExceptionjava.sql.SQLExceptionAuthorizeExceptionCopyright © 2013 DuraSpace. All Rights Reserved.