|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.priha.core.ItemImpl
org.priha.core.PropertyImpl
public class PropertyImpl
Field Summary |
---|
Fields inherited from class org.priha.core.ItemImpl |
---|
m_isNew, m_path, m_session |
Constructor Summary | |
---|---|
PropertyImpl(SessionImpl session,
Path path,
QPropertyDefinition propDef)
|
Method Summary | |
---|---|
int |
compareTo(PropertyImpl o)
|
boolean |
equals(java.lang.Object obj)
A PropertyImpl is equal to another PropertyImpl if Paths are equal Definitions are equal All values are equal (in case of a multi-valued object) |
boolean |
getBoolean()
|
java.util.Calendar |
getDate()
|
PropertyDefinition |
getDefinition()
|
double |
getDouble()
|
long |
getLength()
|
long[] |
getLengths()
|
long |
getLong()
|
NodeImpl |
getNode()
|
java.io.InputStream |
getStream()
|
java.lang.String |
getString()
|
int |
getType()
|
ValueImpl |
getValue()
|
ValueContainer |
getValueContainer()
|
Value[] |
getValues()
|
boolean |
isTransient()
Returns true, if this property is transient. |
void |
loadValue(Value[] values,
int propertyType)
Differs from setValue() in the sense that it does not mark it modified. |
void |
loadValue(ValueImpl value)
Differs from setValue(), as it does not mark the item modified. |
protected void |
preSave()
Performs mandatory housekeeping right before saving. |
void |
remove()
|
void |
save()
|
void |
setDefinition(PropertyDefinition pd)
|
void |
setTransient(boolean b)
Transient properties are never saved - they just live within the Session. |
void |
setValue(Node value)
|
void |
setValue(java.lang.String value,
int type)
|
void |
setValue(Value value)
|
void |
setValue(Value[] values)
|
void |
setValue(Value[] values,
int propertyType)
|
java.lang.String |
toString()
Returns a human-readable description of the Item. |
Methods inherited from class org.priha.core.ItemImpl |
---|
accept, enterState, getAncestor, getCreationTime, getDepth, getInternalPath, getName, getParent, getPath, getPathReference, getQName, getSession, getState, hashCode, isModified, isNew, isNode, isSame, postSave, refresh |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyImpl(SessionImpl session, Path path, QPropertyDefinition propDef)
Method Detail |
---|
public boolean getBoolean() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public java.util.Calendar getDate() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public PropertyDefinition getDefinition() throws RepositoryException
RepositoryException
public double getDouble() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public long getLength() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public long[] getLengths() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public long getLong() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public NodeImpl getNode() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public java.io.InputStream getStream() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public java.lang.String getString() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public int getType() throws RepositoryException
RepositoryException
public ValueImpl getValue() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public Value[] getValues() throws ValueFormatException, RepositoryException
ValueFormatException
RepositoryException
public void loadValue(ValueImpl value) throws VersionException, LockException, ConstraintViolationException, RepositoryException
value
-
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(Value[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(Value[] values, int propertyType) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void loadValue(Value[] values, int propertyType) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
values
-
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(Node value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(java.lang.String value, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void save() throws AccessDeniedException, ItemExistsException, ConstraintViolationException, InvalidItemStateException, ReferentialIntegrityException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException
ItemImpl
save
in class ItemImpl
AccessDeniedException
ItemExistsException
ConstraintViolationException
InvalidItemStateException
ReferentialIntegrityException
VersionException
LockException
NoSuchNodeTypeException
RepositoryException
public java.lang.String toString()
ItemImpl
toString
in class ItemImpl
public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException
ItemImpl
remove
in class ItemImpl
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setDefinition(PropertyDefinition pd)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(PropertyImpl o)
compareTo
in interface java.lang.Comparable<PropertyImpl>
public void setTransient(boolean b)
b
- True, if you want to turn this property into a transient property.public boolean isTransient()
protected void preSave() throws RepositoryException
ItemImpl
preSave
in class ItemImpl
RepositoryException
- If something goes wrongpublic ValueContainer getValueContainer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |