org.datanucleus.metadata
Class UniqueMetaData

java.lang.Object
  extended by org.datanucleus.metadata.MetaData
      extended by org.datanucleus.metadata.AbstractConstraintMetaData
          extended by org.datanucleus.metadata.UniqueMetaData
All Implemented Interfaces:
java.io.Serializable, ColumnMetaDataContainer

public class UniqueMetaData
extends AbstractConstraintMetaData
implements ColumnMetaDataContainer

MetaData representing a unique constraint.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.datanucleus.metadata.AbstractConstraintMetaData
columnMetaData, columns, memberMetaData, members, name, table
 
Fields inherited from class org.datanucleus.metadata.MetaData
extensions, LOCALISER, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME, VENDOR_NAME_OLD
 
Constructor Summary
UniqueMetaData()
          Default constructor.
UniqueMetaData(UniqueMetaData umd)
          Constructor to create a copy of the passed metadata using the provided parent.
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getTable()
           
 boolean isDeferred()
           
 UniqueMetaData setDeferred(boolean deferred)
           
 UniqueMetaData setDeferred(java.lang.String deferred)
           
 void setName(java.lang.String name)
           
 void setTable(java.lang.String table)
           
 java.lang.String toString(java.lang.String prefix, java.lang.String indent)
          Returns a string representation of the object.
 
Methods inherited from class org.datanucleus.metadata.AbstractConstraintMetaData
addColumn, addMember, getColumnMetaData, getMemberMetaData, getNumberOfColumns, getNumberOfMembers, initialise, newColumnMetaData, newFieldMetaData, newPropertyMetaData
 
Methods inherited from class org.datanucleus.metadata.MetaData
addExtension, addExtension, assertIfInitialised, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, isInitialised, isPopulated, isUsed, newExtensionMetaData, removeExtension, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.datanucleus.metadata.ColumnMetaDataContainer
addColumn, getColumnMetaData
 

Constructor Detail

UniqueMetaData

public UniqueMetaData(UniqueMetaData umd)
Constructor to create a copy of the passed metadata using the provided parent.

Parameters:
umd - The metadata to copy

UniqueMetaData

public UniqueMetaData()
Default constructor. Set fields using setters, before populate().

Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getTable

public java.lang.String getTable()

setTable

public void setTable(java.lang.String table)

isDeferred

public final boolean isDeferred()

setDeferred

public UniqueMetaData setDeferred(boolean deferred)

setDeferred

public UniqueMetaData setDeferred(java.lang.String deferred)

toString

public java.lang.String toString(java.lang.String prefix,
                                 java.lang.String indent)
Returns a string representation of the object. This can be used as part of a facility to output a MetaData file.

Overrides:
toString in class MetaData
Parameters:
prefix - prefix string
indent - indent string
Returns:
a string representation of the object.


Copyright © 2010. All Rights Reserved.