public MithraObjectPortal getMithraObjectPortal() { return EmployeeFinder.getMithraObjectPortal(); } }
public MithraObjectPortal zGetMithraObjectPortal() { return EmployeeFinder.getMithraObjectPortal(); }
public MithraObjectPortal getMithraObjectPortal() { return EmployeeFinder.getMithraObjectPortal(); }
public MithraObjectPortal getMithraObjectPortal() { return EmployeeFinder.getMithraObjectPortal(); }
public MithraObjectPortal zGetMithraObjectPortal(int hierarchyDepth) { return EmployeeFinder.getMithraObjectPortal(); }
public MithraObjectPortal zGetPortal() { return EmployeeFinder.getMithraObjectPortal(); }
public Cache zGetCache() { return EmployeeFinder.getMithraObjectPortal().getCache(); }
public MithraTransactionalDatabaseObject zGetDatabaseObject() { return (MithraTransactionalDatabaseObject) EmployeeFinder.getMithraObjectPortal().getDatabaseObject(); }
public static void registerForNotification(MithraApplicationClassLevelNotificationListener listener) { getMithraObjectPortal().registerForApplicationClassLevelNotification(listener); } }
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; }
private static Employee findOne(com.gs.fw.finder.Operation operation, boolean bypassCache) { List found = getMithraObjectPortal().find((Operation) operation, bypassCache); return (Employee) FinderUtils.findOne(found); }
public String getPrimaryKeyWhereSql() { if (EmployeeFinder.getMithraObjectPortal().getTxParticipationMode().isOptimisticLocking()) { } return "EMPLOYEE_ID = ?"; }
public static Employee zFindOneForRelationship(Operation operation) { List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult(); return (Employee) FinderUtils.findOne(found); }
public TemporalContainer createContainer(MithraTransaction tx) { return new BiTemporalTransactionalDataContainer(tx.getPerPortalTemporalContainer(EmployeeFinder.getMithraObjectPortal(), EmployeeFinder.processingDate()) ,EmployeeFinder.businessDate()); }
public void setPrimaryKeyAttributes(PreparedStatement stm, int pos, MithraDataObject dataObj, TimeZone databaseTimeZone, DatabaseType dt) throws SQLException { EmployeeData data = (EmployeeData)dataObj; TimeZone conversionTimeZone = null; pos = setPrimaryKeyAttributesWithoutOptimistic(stm,pos,dataObj,databaseTimeZone,dt); if (EmployeeFinder.getMithraObjectPortal().getTxParticipationMode().isOptimisticLocking()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; dt.setTimestamp(stm, pos, data.getProcessingDateFrom(), false, conversionTimeZone); pos++; } }
protected void zCheckOptimisticLocking(MithraTransaction tx, MithraDataObject d, MithraDataObject nd) { EmployeeData newData = (EmployeeData) d; EmployeeData data = (EmployeeData) nd; if (EmployeeFinder.getMithraObjectPortal().getTxParticipationMode(tx).isOptimisticLocking() && !tx.retryOnOptimisticLockFailure() && !newData.getProcessingDateFrom().equals(data.getProcessingDateFrom())) { throw new MithraOptimisticLockException("Optimistic lock failure. "+data.zGetPrintablePrimaryKey()); } }