com.force.sdk.jpa.schema
Class SchemaDeleteProperty

java.lang.Object
  extended by com.force.sdk.jpa.schema.SchemaDeleteProperty

public class SchemaDeleteProperty
extends Object

This class tells the schema process how to handle schema deletion. Via persistence.xml or through other schema tools a user can delete the schema in their org, and purge it from the recycle bin if necessary

Author:
Jill Wetzler

Constructor Summary
SchemaDeleteProperty(boolean deleteSchema, boolean purgeSchemaOnDelete)
          Create a delete property that signifies whether we want to delete the schema objects by sending them to the recycle bin or whether we want to bypass the recycle bin and do a hard delete.
 
Method Summary
 boolean getDeleteSchema()
           
 boolean getPurgeSchemaOnDelete()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaDeleteProperty

public SchemaDeleteProperty(boolean deleteSchema,
                            boolean purgeSchemaOnDelete)
Create a delete property that signifies whether we want to delete the schema objects by sending them to the recycle bin or whether we want to bypass the recycle bin and do a hard delete. Note that purgeSchemaOnDelete will be ignored unless deleteSchema is true.

Parameters:
deleteSchema - whether the schema for this application should be deleted
purgeSchemaOnDelete - if purgeSchemaOnDelete is true, schema objects will bypass the recycle bin and be hard deleted, if false, schema objects will be placed in the recycle bin
Method Detail

getDeleteSchema

public boolean getDeleteSchema()
Returns:
true if schema should be deleted, optionally skip recycle bin by purgeOnDelete

getPurgeSchemaOnDelete

public boolean getPurgeSchemaOnDelete()
Returns:
true if getDeleteSchema() is true and schema should bypass the recycle bin


Copyright © 2011. All Rights Reserved.