com.mizar.metadata.db.bean
Class SdoStylesSuperClass

java.lang.Object
  extended by com.mizar.persistence.jpa.beans.GenericBean
      extended by com.mizar.metadata.db.bean.SdoStylesSuperClass
All Implemented Interfaces:
JPAInterface, java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
MdsysSdoStylesTableBean, UserSdoStylesBean

@MappedSuperclass
public class SdoStylesSuperClass
extends GenericBean

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mizar.persistence.jpa.beans.GenericBean
_logger, DELETE, EDIT, NEW, READ, serialVersionUID
 
Constructor Summary
SdoStylesSuperClass()
           
 
Method Summary
 char[] getDefinition()
           
 java.lang.String getDescription()
           
 byte[] getImage()
           
 java.lang.String getImageContentType()
          Determines the content type of the image byte array by its magic number (first four bytes)
 java.lang.String getLabel()
          This method is a placeholder until we get CUSTOM TAGS for USER_SDO_STYLES
 java.lang.String getName()
           
 java.util.Map<java.lang.String,java.lang.String> getParsedDescription()
          Creates a read-only list of attributes loaded from the description field
 java.lang.String getPrimaryKeyValue()
          NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)
 java.lang.String getType()
           
 void setDefinition(char[] definition)
           
 void setDescription(java.lang.String description)
           
 void setImage(byte[] image)
           
 void setName(java.lang.String name)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class com.mizar.persistence.jpa.beans.GenericBean
compareTo, equals, getDELETE, getEDIT, getEntityState, getEntityStateLabel, getLogger, getNEW, getREAD, hashCode, isEditable, isNew, setEditable, setEntityState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SdoStylesSuperClass

public SdoStylesSuperClass()
Method Detail

getParsedDescription

public java.util.Map<java.lang.String,java.lang.String> getParsedDescription()
Creates a read-only list of attributes loaded from the description field

Returns:

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getPrimaryKeyValue

public java.lang.String getPrimaryKeyValue()
Description copied from class: GenericBean

NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)

 public Object getPrimaryKeyValue(){
   return getProperty();
 }
 

In the absence of an overriding method, this method provides a generic method to get the value of the primary key. This is especially useful for calls to em.find(object) from within abstract classes

Overrides:
getPrimaryKeyValue in class GenericBean
Returns:
JPAUtils#getPrimaryKeyValue(this)
See Also:
RowInterface.getPrimaryKeyValue()

getDefinition

public char[] getDefinition()

setDefinition

public void setDefinition(char[] definition)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getImage

public byte[] getImage()

setImage

public void setImage(byte[] image)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getImageContentType

public java.lang.String getImageContentType()
Determines the content type of the image byte array by its magic number (first four bytes)

Returns:
The Content-Type string of the image byte array, or null if it's unknown

getLabel

public java.lang.String getLabel()
This method is a placeholder until we get CUSTOM TAGS for USER_SDO_STYLES

Returns:
a label