/** * PUBLIC: * Set the name of the session to execute the mapping's queries under. * This can be used by the session broker to override the default session * to be used for the target class. */ public void setSessionName(String name) { getDeleteAllQuery().setSessionName(name); getSelectionQuery().setSessionName(name); } /**
/** * PUBLIC: * Set the name of the session to execute the mapping's queries under. * This can be used by the session broker to override the default session * to be used for the target class. */ public void setSessionName(String name) { getDeleteAllQuery().setSessionName(name); getSelectionQuery().setSessionName(name); } /**
/** * PUBLIC: * Set the name of the session to execute the mapping's queries under. * This can be used by the session broker to override the default session * to be used for the target class. */ public void setSessionName(String name) { getDeleteAllQuery().setSessionName(name); getSelectionQuery().setSessionName(name); }
/** * INTERNAL: * The mapping clones itself to create deep copy. */ public Object clone() { CollectionMapping clone = (CollectionMapping)super.clone(); clone.setDeleteAllQuery((ModifyQuery)getDeleteAllQuery().clone()); if(this.listOrderField != null) { clone.listOrderField = ((DatabaseField)this.listOrderField.clone()); } if(this.changeOrderTargetQuery != null) { clone.changeOrderTargetQuery = (DataModifyQuery)this.changeOrderTargetQuery.clone(); } return clone; }
/** * INTERNAL: * The mapping clones itself to create deep copy. */ @Override public Object clone() { CollectionMapping clone = (CollectionMapping)super.clone(); clone.setDeleteAllQuery((ModifyQuery)getDeleteAllQuery().clone()); if (this.listOrderField != null) { clone.listOrderField = this.listOrderField.clone(); } if(this.changeOrderTargetQuery != null) { clone.changeOrderTargetQuery = (DataModifyQuery)this.changeOrderTargetQuery.clone(); } // Clone the container policy. clone.containerPolicy = (ContainerPolicy) this.containerPolicy.clone(); return clone; }
/** * INTERNAL: * The mapping clones itself to create deep copy. */ @Override public Object clone() { CollectionMapping clone = (CollectionMapping)super.clone(); clone.setDeleteAllQuery((ModifyQuery)getDeleteAllQuery().clone()); if (this.listOrderField != null) { clone.listOrderField = this.listOrderField.clone(); } if(this.changeOrderTargetQuery != null) { clone.changeOrderTargetQuery = (DataModifyQuery)this.changeOrderTargetQuery.clone(); } // Clone the container policy. clone.containerPolicy = (ContainerPolicy) this.containerPolicy.clone(); return clone; }