edu.internet2.middleware.grouperClient.jdbc
Annotation Type GcPersistableClass


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface GcPersistableClass

Metadata about class objects that can be stored to the database.

Author:
harveycg

Optional Element Summary
 GcPersist defaultFieldPersist
          Whether the default behavior for fields in this class should be to persist or to not persist, default is to persist.
 boolean hasNoPrimaryKey
          There is no primary key for this object - saving through DbAccess always results in a new row.
 java.lang.String tableName
          The name of the table that this object maps to in the database.
 

tableName

public abstract java.lang.String tableName
The name of the table that this object maps to in the database.

Returns:
the table name.
Default:
""

defaultFieldPersist

public abstract GcPersist defaultFieldPersist
Whether the default behavior for fields in this class should be to persist or to not persist, default is to persist.

Returns:
true if so.
Default:
edu.internet2.middleware.grouperClient.jdbc.GcPersist.doPersist

hasNoPrimaryKey

public abstract boolean hasNoPrimaryKey
There is no primary key for this object - saving through DbAccess always results in a new row.

Returns:
true if so.
Default:
false