public class DbProperty
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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 - 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.
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.