org.palo.api
Class Property2Factory

java.lang.Object
  extended by org.palo.api.Property2Factory
Direct Known Subclasses:
Property2FactoryImpl

public abstract class Property2Factory
extends java.lang.Object

The Property2Factory class can be used to easily create new Property2 objects.

Version:
$Id: Property2Factory.html,v 1.6 2009/07/09 11:01:46 ArndHouben Exp $

Constructor Summary
Property2Factory()
           
 
Method Summary
static Property2Factory getInstance()
           
abstract  Property2 newProperty(Connection con, java.lang.String id, java.lang.String value)
          Creates a new property2 object that has no parent and is of type string.
abstract  Property2 newProperty(Connection con, java.lang.String id, java.lang.String value, int type)
          Creates a new property2 object that has no parent and is of the specified type (one of the constants defined in Property2).
abstract  Property2 newProperty(Connection con, java.lang.String id, java.lang.String value, Property2 parent)
          Creates a new property2 object that has the given parent and is of type string.
abstract  Property2 newProperty(Connection con, java.lang.String id, java.lang.String value, Property2 parent, int type)
          Creates a new property2 object that has the given parent and is of the specified type (one of the constants defined in Property2).
abstract  Property2 newReadOnlyProperty(Connection con, java.lang.String id, java.lang.String value)
          Creates a new read-only property2 object that has no parent and is of type string.
abstract  Property2 newReadOnlyProperty(Connection con, java.lang.String id, java.lang.String value, int type)
          Creates a new read-only property2 object that has no parent and is of the specified type (one of the constants defined in Property2).
abstract  Property2 newReadOnlyProperty(Connection con, java.lang.String id, java.lang.String value, Property2 parent)
          Creates a new read-only property2 object that has the given parent and is of type string.
abstract  Property2 newReadOnlyProperty(Connection con, java.lang.String id, java.lang.String value, Property2 parent, int type)
          Creates a new read-only property2 object that has the given parent and is of the specified type (one of the constants defined in Property2).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property2Factory

public Property2Factory()
Method Detail

getInstance

public static Property2Factory getInstance()

newProperty

public abstract Property2 newProperty(Connection con,
                                      java.lang.String id,
                                      java.lang.String value)
Creates a new property2 object that has no parent and is of type string.

Parameters:
con - the connection to which this property belongs.
id - the new id of the property.
value - the value for the property.
Returns:
a new modifiable string property with no parent.

newProperty

public abstract Property2 newProperty(Connection con,
                                      java.lang.String id,
                                      java.lang.String value,
                                      Property2 parent)
Creates a new property2 object that has the given parent and is of type string.

Parameters:
con - the connection to which this property belongs.
id - the new id of the property.
value - the value for the property.
parent - the parent of this property.
Returns:
a new modifiable string property with the given parent.

newProperty

public abstract Property2 newProperty(Connection con,
                                      java.lang.String id,
                                      java.lang.String value,
                                      int type)
Creates a new property2 object that has no parent and is of the specified type (one of the constants defined in Property2).

Parameters:
con - the connection to which this property belongs.
id - the new id of the property.
value - the value for the property.
type - the type of this property. One of the constants defined in Property2.
Returns:
a new modifiable property (type as specified) with no parent.

newProperty

public abstract Property2 newProperty(Connection con,
                                      java.lang.String id,
                                      java.lang.String value,
                                      Property2 parent,
                                      int type)
Creates a new property2 object that has the given parent and is of the specified type (one of the constants defined in Property2).

Parameters:
con - the connection to which this property belongs.
id - the new id of the property.
value - the value for the property.
parent - the parent of this property.
type - the type of this property. One of the constants defined in Property2.
Returns:
a new modifiable property (type as specified) with the given parent.

newReadOnlyProperty

public abstract Property2 newReadOnlyProperty(Connection con,
                                              java.lang.String id,
                                              java.lang.String value)
Creates a new read-only property2 object that has no parent and is of type string.

Parameters:
con - the connection to which this property belongs.
id - the new id of the property.
value - the value for the property.
Returns:
a new unmodifiable string property with no parent.

newReadOnlyProperty

public abstract Property2 newReadOnlyProperty(Connection con,
                                              java.lang.String id,
                                              java.lang.String value,
                                              Property2 parent)
Creates a new read-only property2 object that has the given parent and is of type string.

Parameters:
con - the connection to which this property belongs.
id - the new id of the property.
value - the value for the property.
parent - the parent of this property.
Returns:
a new unmodifiable string property with the given parent.

newReadOnlyProperty

public abstract Property2 newReadOnlyProperty(Connection con,
                                              java.lang.String id,
                                              java.lang.String value,
                                              int type)
Creates a new read-only property2 object that has no parent and is of the specified type (one of the constants defined in Property2).

Parameters:
con - the connection to which this property belongs.
id - the new id of the property.
value - the value for the property.
type - the type of this property. One of the constants defined in Property2.
Returns:
a new unmodifiable property (type as specified) with no parent.

newReadOnlyProperty

public abstract Property2 newReadOnlyProperty(Connection con,
                                              java.lang.String id,
                                              java.lang.String value,
                                              Property2 parent,
                                              int type)
Creates a new read-only property2 object that has the given parent and is of the specified type (one of the constants defined in Property2).

Parameters:
con - the connection to which this property belongs.
id - the new id of the property.
value - the value for the property.
parent - the parent of this property.
type - the type of this property. One of the constants defined in Property2.
Returns:
a new unmodifiable property (type as specified) with the given parent.