|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.enterprise.Simple
wt.prefs.DBPrefEntry
Use the newDBPrefEntry
static factory method(s), not the
DBPrefEntry
constructor, to construct instances of this
class. Instances must be constructed using the static factory(s), in
order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static SQLFunction |
concat
|
private String |
context
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static Object |
lock
|
private String |
name
|
private String |
node
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private Ownership |
ownership
|
private String |
parent
|
private static String |
RESOURCE
|
private static ClassAttribute |
search_name
|
private static ClassAttribute |
search_node
|
private static ClassAttribute |
search_parent
|
private static ConstantExpression |
search_sep
|
(package private) static long |
serialVersionUID
|
private String |
value
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.enterprise.Simple |
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.prefs.PrefEntry |
CONTEXT, NAME, NODE, PARENT, VALUE |
Fields inherited from interface wt.ownership.Ownable |
OWNERSHIP |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.fc.BusinessInformation |
BUSINESS_TYPE, IDENTITY |
Fields inherited from interface wt.notify.Notifiable |
EVENT_SET |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
DBPrefEntry()
|
Method Summary | |
protected void |
appendWhere(QuerySpec qs,
Class cls,
String field,
String cond,
String val)
AppendWhere used for the querying of objects. |
String[] |
children(String[] search_context)
Supported API: false |
private void |
contextValidate(String a_Context)
|
void |
delete()
Supported API: false |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
static PrefEntry[] |
getAllEntries(String m_node,
String[] m_context,
String m_name)
Supported API: false |
String |
getConceptualClassname()
Deprecated. |
String |
getContext()
Gets the value of the attribute: CONTEXT. |
private QuerySpec |
getIntermediaryQuerySpec(String[] search_context)
Will create a Query Spec for all the Intermediary nodes |
private QuerySpec |
getLeafNodeQuerySpec(String[] search_context)
Will return all the nodes that are leaf nodes of the current node. |
String |
getName()
Gets the value of the attribute: NAME. |
String |
getNode()
Gets the value of the attribute: NODE. |
Ownership |
getOwnership()
Gets the object for the association that plays role: OWNERSHIP. |
String |
getParent()
Gets the value of the attribute: PARENT. |
private QuerySpec |
getQuerySpec()
This method will create a query spec for the DBPrefEntry. |
private static QuerySpec |
getQuerySpec(String m_node,
String[] m_context,
String m_name)
|
private QuerySpec |
getSearchQuerySpec(String aString,
String[] aContext,
boolean isLike)
This method will build a query spect for this service class. |
String |
getValue()
Gets the value of the attribute: VALUE. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(String parent,
String node,
String context,
String name,
String value)
Supports initialization, following construction of an instance. |
private static void |
initializeQuery()
|
private void |
nameValidate(String a_Name)
|
static DBPrefEntry |
newDBPrefEntry(String parent,
String node,
String context,
String name,
String value)
Supported API: false |
private void |
nodeValidate(String a_Node)
|
private void |
parentValidate(String a_Parent)
|
void |
persist()
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(DBPrefEntry thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
PrefEntry |
retrieve()
This method will perform the retrieval of Preference Information (if appropriate) for the given PrefEntry from the back-end store. |
PrefEntry[] |
retrieveAll()
This method will perform the retrieval of Preference Information (if appropriate) for the given PrefEntry from the back-end store. |
ArrayList |
search(String search,
String[] contexts,
boolean isLike)
This will search the Preference Entry for the search string. |
void |
setContext(String a_Context)
Sets the value of the attribute: CONTEXT. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setNode(String a_Node)
Sets the value of the attribute: NODE. |
void |
setOwnership(Ownership a_Ownership)
Sets the object for the association that plays role: OWNERSHIP. |
void |
setParent(String a_Parent)
Sets the value of the attribute: PARENT. |
void |
setValue(String a_Value)
Sets the value of the attribute: VALUE. |
void |
update()
This method should force an update on the PrefEntry information to the backing-store according to the current state of the PrefEntry Supported API: false |
private void |
valueValidate(String a_Value)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.enterprise.Simple |
getBusinessType, getDomainRef, getEventSet, getIdentity, initialize, isInheritedDomain, readVersion, setDomainRef, setEventSet, setInheritedDomain |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.Persistable |
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String parent
private String name
private String value
private String node
private String context
private Ownership ownership
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static boolean VERBOSE
private static SQLFunction concat
private static ClassAttribute search_parent
private static ClassAttribute search_node
private static ClassAttribute search_name
private static final ConstantExpression search_sep
private static Object lock
Constructor Detail |
public DBPrefEntry()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Simple
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Simple
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DBPrefEntry thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class Simple
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class Simple
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public static DBPrefEntry newDBPrefEntry(String parent, String node, String context, String name, String value) throws WTException
parent
- node
- context
- name
- value
-
WTException
protected void initialize(String parent, String node, String context, String name, String value) throws WTException
parent
- node
- context
- name
- value
-
WTException
public static PrefEntry[] getAllEntries(String m_node, String[] m_context, String m_name) throws WTException
m_node
- m_context
- m_name
-
WTException
public String getParent()
getParent
in interface PrefEntry
public void setParent(String a_Parent) throws WTPropertyVetoException
setParent
in interface PrefEntry
a_Parent
-
WTPropertyVetoException
private void parentValidate(String a_Parent) throws WTPropertyVetoException
a_Parent
-
WTPropertyVetoException
public String getName()
getName
in interface PrefEntry
public void setName(String a_Name) throws WTPropertyVetoException
setName
in interface PrefEntry
a_Name
-
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public String getValue()
getValue
in interface PrefEntry
public void setValue(String a_Value) throws WTPropertyVetoException
setValue
in interface PrefEntry
a_Value
-
WTPropertyVetoException
private void valueValidate(String a_Value) throws WTPropertyVetoException
a_Value
-
WTPropertyVetoException
public String getNode()
getNode
in interface PrefEntry
public void setNode(String a_Node) throws WTPropertyVetoException
setNode
in interface PrefEntry
a_Node
-
WTPropertyVetoException
private void nodeValidate(String a_Node) throws WTPropertyVetoException
a_Node
-
WTPropertyVetoException
public String getContext()
getContext
in interface PrefEntry
public void setContext(String a_Context) throws WTPropertyVetoException
setContext
in interface PrefEntry
a_Context
-
WTPropertyVetoException
private void contextValidate(String a_Context) throws WTPropertyVetoException
a_Context
-
WTPropertyVetoException
public PrefEntry retrieve()
retrieve
in interface PrefEntry
public void update() throws WTException
update
in interface PrefEntry
WTException
public void persist()
persist
in interface PrefEntry
public void delete()
delete
in interface PrefEntry
public PrefEntry[] retrieveAll()
retrieveAll
in interface PrefEntry
public String[] children(String[] search_context)
children
in interface PrefEntry
search_context
- The context(s) to search the children for
public ArrayList search(String search, String[] contexts, boolean isLike) throws WTException
search
in interface PrefEntry
search
- The string to search forcontexts
- The list of search contexts to use for the search.isLike
- Whether the search is a LIKE search or exact match
WTException
public Ownership getOwnership()
getOwnership
in interface Ownable
public void setOwnership(Ownership a_Ownership)
setOwnership
in interface Ownable
a_Ownership
- public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class Simple
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class Simple
protected void appendWhere(QuerySpec qs, Class cls, String field, String cond, String val) throws WTException
WTException
private QuerySpec getIntermediaryQuerySpec(String[] search_context) throws WTException
search_context
- The searching contexts.
WTException
private static QuerySpec getQuerySpec(String m_node, String[] m_context, String m_name) throws WTException
WTException
private QuerySpec getQuerySpec() throws WTException
WTException
private QuerySpec getLeafNodeQuerySpec(String[] search_context) throws WTException
search_context
- The contexts to search
WTException
private QuerySpec getSearchQuerySpec(String aString, String[] aContext, boolean isLike) throws WTException
aString
- The string to search for.aContext
- The context for the searchisLike
- Whether the search is a LIKE or EQUALS search
WTException
private static void initializeQuery()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |