AnyLogic
Expand
Font size

@AnyLogicInternalAPI
public class TableElementDatabaseBuilder
extends Object

Constructor Summary

ConstructorDescription
TableElementDatabaseBuilder(Utilities utils) 

Method Summary

Modifier and TypeMethodDescription
CustomDistributionAbstractbuildCustomDistribution(String type, String definitionType) 
<T extends Enum>
CustomDistributionOptions<T>
buildCustomDistributionOfOptions(Class<T> enumClass) 
TableFunctionbuildTableFunction(TableFunction.InterpolationType interpolationType, int approximationOrder, TableFunction.OutOfRangeAction outOfRangeAction, double outOfRangeValue) 
static longconvertToRelativeTime(Timestamp t, LocalDateTime beginPoint, long repeatTime) 
voidfillSchedule(Schedule s, Class<?> valueType, boolean isSundayFirst, boolean isByDays, long repeatTime, boolean isRange, boolean isCustom, long atomicDuration) 
static LocalDateTimegetBeginPoint(Timestamp t, boolean isByDays, boolean isSundayFirst) 
TableElementDatabaseBuildersetColumns(com.querydsl.core.types.Expression<?>... columns) 
TableElementDatabaseBuildersetOwner(Utilities owner) 
TableElementDatabaseBuildersetSqlQuery(String sql, Object... params) 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

TableElementDatabaseBuilder

public TableElementDatabaseBuilder(Utilities utils)

Method Details

setOwner

public TableElementDatabaseBuilder setOwner(Utilities owner)

setSqlQuery

public TableElementDatabaseBuilder setSqlQuery(String sql,
 Object... params)

setColumns

public TableElementDatabaseBuilder setColumns(com.querydsl.core.types.Expression<?>... columns)

buildTableFunction

public TableFunction buildTableFunction(TableFunction.InterpolationType interpolationType,
 int approximationOrder,
 TableFunction.OutOfRangeAction outOfRangeAction,
 double outOfRangeValue)

fillSchedule

public void fillSchedule(Schedule s,
 Class<?> valueType,
 boolean isSundayFirst,
 boolean isByDays,
 long repeatTime,
 boolean isRange,
 boolean isCustom,
 long atomicDuration)

buildCustomDistribution

public CustomDistributionAbstract buildCustomDistribution(String type,
 String definitionType)

buildCustomDistributionOfOptions

public <T extends Enum>
CustomDistributionOptions<T> buildCustomDistributionOfOptions(Class<T> enumClass)

getBeginPoint

public static LocalDateTime getBeginPoint(Timestamp t,
 boolean isByDays,
 boolean isSundayFirst)

convertToRelativeTime

public static long convertToRelativeTime(Timestamp t,
 LocalDateTime beginPoint,
 long repeatTime)