|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.util.schemacomp.DbProperty
public class DbProperty
A pointer to a specific DbObject property and its value (at time of creating the DbProperty object).
| Constructor Summary | |
|---|---|
|
DbProperty(DbObject dbObject)
Construct a pointer to a database object only (no property within). |
|
DbProperty(DbObject dbObject,
java.lang.String propertyName)
Create a DbProperty by supplying the DbObject and the property name. |
|
DbProperty(DbObject dbObject,
java.lang.String propertyName,
int index)
Create a DbProperty with an indexed value, e.g. |
protected |
DbProperty(DbObject dbObject,
java.lang.String propertyName,
int index,
boolean useSuppliedValue,
java.lang.Object propertyValue)
Full constructor allowing control over whether the property name should be indexed (e.g. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
DbObject |
getDbObject()
|
java.lang.String |
getPath()
Work backwards from this DbProperty's DbObject to the root object to create a path in the following format: |
java.lang.String |
getPropertyName()
|
java.lang.Object |
getPropertyValue()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DbProperty(DbObject dbObject,
java.lang.String propertyName,
int index,
boolean useSuppliedValue,
java.lang.Object propertyValue)
The public constructors provide a more usable API with select sets of arguments.
dbObject - propertyName - propertyValue - public DbProperty(DbObject dbObject)
dbObject -
public DbProperty(DbObject dbObject,
java.lang.String propertyName)
dbObject - propertyName -
public DbProperty(DbObject dbObject,
java.lang.String propertyName,
int index)
dbObject - propertyName - index - | Method Detail |
|---|
public DbObject getDbObject()
public java.lang.String getPropertyName()
public java.lang.Object getPropertyValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getPath()
root.child.grandchild[...].property
e.g. myschema.person.age.nullable
This isn't exactly the same as a FQ database object name, for example the property name could be indexed:
e.g. myschema.person.pk_person.columnNames[2]
to reflect the third column name in the primary key named "pk_person" on the person table.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||