public static MithraObjectPortal getMithraObjectPortal() { return objectPortal.getInitializedPortal(); }
public static void reloadCache() { objectPortal.reloadCache(); }
public void insertUntil(Timestamp exclusiveUntil) throws MithraBusinessException { throw new MithraBusinessException("insertUntil is only supported for dated objects with a business date"); }
protected int generatePersonId() { Object sourceAttribute = null; PersonFinder.getMithraObjectPortal().getCache(); SimulatedSequencePrimaryKeyGenerator primaryKeyGenerator = MithraPrimaryKeyGenerator.getInstance().getSimulatedSequencePrimaryKeyGeneratorForNoSourceAttribute("Person", "kata.util.ObjectSequenceObjectFactory",sourceAttribute); return (int)primaryKeyGenerator.getNextId(sourceAttribute); }
public MithraDataObject zRefreshWithLock(boolean lock) { CustomerData data = (CustomerData) CustomerFinder.getMithraObjectPortal().refreshDatedObject(this, lock); if (data == null) { throw new MithraDeletedException("Customer has been deleted."); } return data; }
public static void clearQueryCache() { objectPortal.clearQueryCache(); }
protected void initReladomo(String runtimeConfigXML) throws Exception { MithraManager mithraManager = MithraManagerProvider.getMithraManager(); mithraManager.setTransactionTimeout(60 * 1000); loadReladomoXML(runtimeConfigXML); }
protected long generateId() { Object sourceAttribute = null; ApplicantFinder.getMithraObjectPortal().getCache(); SimulatedSequencePrimaryKeyGenerator primaryKeyGenerator = MithraPrimaryKeyGenerator.getInstance().getSimulatedSequencePrimaryKeyGeneratorForNoSourceAttribute("Applicant", "com.gs.reladomo.example_credit_decision.ObjectSequenceObjectFactory",sourceAttribute); return (long)primaryKeyGenerator.getNextId(sourceAttribute); }
public MithraDataObject zRefreshWithLock(boolean lock) { CustomerAccountData data = (CustomerAccountData) CustomerAccountFinder.getMithraObjectPortal().refreshDatedObject(this, lock); if (data == null) { throw new MithraDeletedException("CustomerAccount has been deleted."); } return data; }
public static MithraObjectPortal getMithraObjectPortal() { return objectPortal.getInitializedPortal(); }
public static void reloadCache() { objectPortal.reloadCache(); }
public void terminateUntil(Timestamp exclusiveUntil) throws MithraBusinessException { throw new MithraBusinessException("terminateUntil is only supported for dated objects with a business date"); }
protected int generatePersonId() { Object sourceAttribute = null; PersonFinder.getMithraObjectPortal().getCache(); SimulatedSequencePrimaryKeyGenerator primaryKeyGenerator = MithraPrimaryKeyGenerator.getInstance().getSimulatedSequencePrimaryKeyGeneratorForNoSourceAttribute("Person", "kata.util.ObjectSequenceObjectFactory",sourceAttribute); return (int)primaryKeyGenerator.getNextId(sourceAttribute); }
public MithraDataObject zRefreshWithLock(boolean lock) { AccountBalanceData data = (AccountBalanceData) AccountBalanceFinder.getMithraObjectPortal().refreshDatedObject(this, lock); if (data == null) { throw new MithraDeletedException("AccountBalance has been deleted."); } return data; }
protected int generateTaskId() { Object sourceAttribute = null; TaskFinder.getMithraObjectPortal().getCache(); SimulatedSequencePrimaryKeyGenerator primaryKeyGenerator = MithraPrimaryKeyGenerator.getInstance().getSimulatedSequencePrimaryKeyGeneratorForNoSourceAttribute("Task", "kata.util.ObjectSequenceObjectFactory",sourceAttribute); return (int)primaryKeyGenerator.getNextId(sourceAttribute); }
public MithraDataObject zRefreshWithLock(boolean lock) { EmployeeData data = (EmployeeData) EmployeeFinder.getMithraObjectPortal().refreshDatedObject(this, lock); if (data == null) { throw new MithraDeletedException("Employee has been deleted."); } return data; }
protected int generateCustomerId() { Object sourceAttribute = null; CustomerFinder.getMithraObjectPortal().getCache(); SimulatedSequencePrimaryKeyGenerator primaryKeyGenerator = MithraPrimaryKeyGenerator.getInstance().getSimulatedSequencePrimaryKeyGeneratorForNoSourceAttribute("Customer", "kata.util.ObjectSequenceObjectFactory",sourceAttribute); return (int)primaryKeyGenerator.getNextId(sourceAttribute); }
public MithraDataObject zRefreshWithLock(boolean lock) { CustomerAccountData data = (CustomerAccountData) CustomerAccountFinder.getMithraObjectPortal().refreshDatedObject(this, lock); if (data == null) { throw new MithraDeletedException("CustomerAccount has been deleted."); } return data; }
public MithraDataObject zRefreshWithLock(boolean lock) { TaskData data = (TaskData) TaskFinder.getMithraObjectPortal().refreshDatedObject(this, lock); if (data == null) { throw new MithraDeletedException("Task has been deleted."); } return data; }
public MithraDataObject zRefreshWithLock(boolean lock) { CustomerData data = (CustomerData) CustomerFinder.getMithraObjectPortal().refreshDatedObject(this, lock); if (data == null) { throw new MithraDeletedException("Customer has been deleted."); } return data; }