public class DCType extends 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,
String element,
String qualifier)
Deprecated.
|
String |
getElement()
Deprecated.
Get the DC element
|
int |
getID()
Deprecated.
Get the internal identifier of this metadata field
|
String |
getQualifier()
Deprecated.
Get the DC qualifier, if any.
|
String |
getScopeNote()
Deprecated.
Get the scope note - information about the DC type and its use
|
static String[] |
quickFind(Context context,
int id)
Deprecated.
|
void |
setElement(String s)
Deprecated.
Set the DC element
|
void |
setQualifier(String s)
Deprecated.
Set the DC qualifier
|
void |
setScopeNote(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 String[] quickFind(Context context, int id) throws SQLException
context - context, in case DC types need to be read in from DBid - the DC type IDSQLExceptionpublic static DCType find(Context context, int id) throws SQLException
context - DSpace context objectid - ID of the dublin core typeSQLExceptionpublic static DCType findByElement(Context context, String element, String qualifier) throws 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 registryAuthorizeExceptionSQLExceptionpublic static DCType[] findAll(Context context) throws SQLException
SQLExceptionpublic static DCType create(Context context) throws SQLException, AuthorizeException, IOException, NonUniqueMetadataException
context - DSpace context objectNonUniqueMetadataExceptionIOExceptionSQLExceptionAuthorizeExceptionpublic void delete()
throws SQLException,
AuthorizeException
SQLException (referential integrity violation) will be
thrown in this case.SQLExceptionAuthorizeExceptionpublic int getID()
public String getElement()
public void setElement(String s)
s - the new elementpublic String getQualifier()
null if this is an
unqualified elementpublic void setQualifier(String s)
s - the DC qualifier, or null if this is an
unqualified elementpublic String getScopeNote()
public void setScopeNote(String s)
s - the new scope notepublic void update()
throws SQLException,
AuthorizeException,
NonUniqueMetadataException,
IOException
Copyright © 2014 DuraSpace. All Rights Reserved.